1
0
mirror of https://framagit.org/framasoft/peertube/search-index/ synced 2025-01-05 22:17:12 +01:00
Motore di ricerca video globale per istanze Peertube. Cercando una parola chiave, il servizio restituisce tutti i video dalle istanze peertube federate. E' possibile applicare un ordinare per data, durata o per lingua https://sepiasearch.peertube.uno
Go to file
2024-01-04 16:22:43 +01:00
client Merge branch 'master' into meilisearch 2023-11-13 11:01:32 +01:00
config Filter instance in bulk 2024-01-04 14:39:41 +01:00
server Increase bulk indexation time 2024-01-04 16:22:43 +01:00
shared
support
themes/framasoft
.eslintrc.json
.gitignore
LICENSE
package.json Move from elastic search to meilisearch 2023-11-10 10:16:12 +01:00
README.md Move from elastic search to meilisearch 2023-11-10 10:16:12 +01:00
server.ts Wait index creaction 2023-11-13 11:06:50 +01:00
tsconfig.json Move from elastic search to meilisearch 2023-11-10 10:16:12 +01:00
yarn.lock Move from elastic search to meilisearch 2023-11-10 10:16:12 +01:00

Application behind search.joinpeertube.org

Dev

$ git submodule update --init --recursive
$ yarn install --pure-lockfile

Indexes in Meilisearch are automatically created by PeerTube at startup.

Run simultaneously (for example with 3 terminals):

$ tsc -w
$ node dist/server
$ cd client && npm run dev

Then open http://localhost:8080.

Add locale

Add the locale in client/src/main.ts and client/gettext.config.js and run npm run i18n:update.

Production

Install dependencies:

  • NodeJS (v16)
  • MeiliSearch
$ git clone https://framagit.org/framasoft/peertube/search-index.git /var/www/peertube-search-index
$ cd /var/www/peertube-search-index
$ yarn install --pure-lockfile
$ npm run build
$ cp config/default.yaml config/production.yaml
$ vim config/production.yaml
$ NODE_ENV=production NODE_CONFIG_DIR=/var/www/peertube-search-index/config node dist/server.js