Website-Backend
The re-written backend for the LA1TV website
Kanban board
For tracking our progress.
Database Info
Creating it
Make a mysql database. Then copy .env.template
to .env
and
configure. Then run npx sequelize db:create
to set it all up.
Updating it
npx sequelize db:migrate
Creating an API key
Run npm run db -- create apikey --name <name>
. It'll generate a key for you.
Using Docker
On an update
- 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
Running commands within the container
Just put ./dockerRun.sh
in front of the command.
To run the server
- Kill any
website-backend
containers insudo docker ps
usingsudo docker kill <id>
(the id only needs to be the first 5 characters). ./dockerStart.sh