anthonyraudino / server

The Otohime site server, powered by Hasura + Webhook by TypeScript/Koa.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Otohime Server

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.

Get Started

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

About

The Otohime site server, powered by Hasura + Webhook by TypeScript/Koa.

License:MIT License


Languages

Language:PLpgSQL 64.4%Language:TypeScript 30.2%Language:Shell 4.0%Language:Dockerfile 1.4%