sepia-search-motore-di-rice.../README.md

39 lines
619 B
Markdown

# Application behind search.joinpeertube.org
## Dev
```terminal
$ git submodule update --init --recursive
$ yarn install --pure-lockfile
```
Initialize the database:
```terminal
$ sudo -u postgres createuser -P peertube
$ sudo -u postgres createdb -O peertube peertube_search_index
```
Then run simultaneously (for example with 2 terminals):
```terminal
$ tsc -w
```
```terminal
$ node dist/server
```
Then open http://localhost:3234.
## Production
In the root of the cloned repo:
```terminal
$ git submodule update --init --recursive
$ yarn install --pure-lockfile
$ npm run build
$ node dist/server.js
```