It contains:
- Hasura running with
docker-compose
- Hooks written with TypeScript / Koa to serve JWT/long-lived tokens auth, song list fetching, database cleanups, etc.
You need a Firebase ID, with Facebook Auth connected in the Firebase project.
And a SEGA ID with password to fetch the recent song list.
Please fill those with database passwords in .env
(example in .env.example
.)
Then run:
docker-compose up
You need to append sudo
if your docker requires root
.
Finally we need to update the song list. Use the following command to update it:
docker-compose run hooks npm run ts-node src/fetch.ts