- Install Docker
- Install the dependencies with
docker-compose run bot npm i
- Copy
.env
to.env.dist
and fill in the credentials - Execute migrations with
docker-compose run bot npm run typeorm migration:run
- You can run the stack by running
docker-compose up -d
- To check the logs you can either attach your shell to the process with
docker attach bot
or use VS Code Debugger - Load questions in the database with
docker-compose run bot npm run bin questions:load
- Stop containers with
docker-compose down
docker-compose up -d
Runs containersdocker-compose down
Shuts down containersdocker-compose run bot <command>
Runs a command in the node container (bot)docker-compose run bot npm run bin questions:load
Run the command located insrc/bin
folderdocker-compose run bot npm run typeorm migration:run
Runs the migrationsdocker-compose run bot npm run typeorm migration:generate -- -n <migration name>
Generates a migration file