2020-02-13 11:49:03 +01:00
|
|
|
# Application behind search.joinpeertube.org
|
|
|
|
|
|
|
|
## Dev
|
|
|
|
|
|
|
|
```terminal
|
|
|
|
$ git submodule update --init --recursive
|
|
|
|
$ yarn install --pure-lockfile
|
|
|
|
```
|
|
|
|
|
2020-09-02 10:17:50 +02:00
|
|
|
The database (Elastic Search) is automatically created by PeerTube at startup.
|
2020-02-13 11:49:03 +01:00
|
|
|
|
2020-09-02 10:17:50 +02:00
|
|
|
Run simultaneously (for example with 3 terminals):
|
2020-02-13 11:49:03 +01:00
|
|
|
|
|
|
|
```terminal
|
|
|
|
$ tsc -w
|
|
|
|
```
|
|
|
|
|
|
|
|
```terminal
|
|
|
|
$ node dist/server
|
|
|
|
```
|
|
|
|
|
2020-09-02 10:17:50 +02:00
|
|
|
```
|
|
|
|
$ cd client && npm run serve
|
|
|
|
```
|
|
|
|
|
|
|
|
Then open http://localhost:8080.
|
2020-02-13 11:49:03 +01:00
|
|
|
|
|
|
|
## Production
|
|
|
|
|
2020-05-28 15:00:37 +02:00
|
|
|
Install dependencies:
|
|
|
|
* NodeJS (v12)
|
|
|
|
* Elastic Search
|
|
|
|
|
2020-02-13 11:49:03 +01:00
|
|
|
In the root of the cloned repo:
|
|
|
|
|
|
|
|
```terminal
|
|
|
|
$ git submodule update --init --recursive
|
|
|
|
$ yarn install --pure-lockfile
|
|
|
|
$ npm run build
|
2020-05-28 15:00:37 +02:00
|
|
|
$ cp config/default.yaml config/production.yaml
|
|
|
|
$ vim config/production.yaml
|
2020-02-13 11:49:03 +01:00
|
|
|
$ node dist/server.js
|
|
|
|
```
|
2020-10-23 08:56:21 +02:00
|
|
|
|
|
|
|
## Add locale
|
|
|
|
|
2020-12-14 08:56:02 +01:00
|
|
|
Add the locale in `client/src/main.ts` and `client/Makefile`. Then update translations.
|