The re-written backend for the LA1TV website
For tracking our progress.
Make a mysql database. Then copy .env.template
to .env
and
configure. Then run npx sequelize db:create
to set it all up.
npx sequelize db:migrate
Run npm run db -- create apikey --name <name>
. It'll generate a key for you.
- Kill any
website-backend
containers insudo docker ps
usingsudo docker kill <id>
(the id only needs to be the first 5 characters). - Then
./dockerBuild.sh
. - Run a DB migrate if you need to:
./dockerRun.sh npx sequelize db:migrate
- Then
./dockerStart.sh
Just put ./dockerRun.sh
in front of the command.
- Kill any
website-backend
containers insudo docker ps
usingsudo docker kill <id>
(the id only needs to be the first 5 characters). ./dockerStart.sh