The API for The Devils Backbone raid system
tdb-raids
, tdb-raids-dev
and tdb-raids-test
.npm i -g yarn nodemon
yarn
example.env
into a file called .env
, then edit the file with all the correct variables needed to run the containernpx sequelize-cli db:migrate:all
and npx sequelize-cli db:seed:all
nodemon
which will watch your files for updates and auto-compile as they are updated.docker-compose -f docker/dev.yaml up
docker ps
to find the name of the api container (typically docker_api_1).docker-compose exec $CONTAINER_NAME npx sequelize-cli db:migrate & npx sequelize-cli db:seed:all
Pushing the project to GitHub's master will automatically compile the project.
You can also do this manually:
docker build .
in your project folder. This will generate a hashed ID string representing the container. Copy this.docker run <ID string>
. This will produce a new container ID string. Copy this.docker exec -it <new ID string>
.npx sequelize-cli db:migrate:all
and npx sequelize-cli db:seed:all
exit
to exit the container.The container should now be running on your computer, with it's attached database. Parts of this will be used in deploying the containers in a production environment as well.
Docker https://www.docker.com/
Sequelize https://sequelize.org/
MariaDB https://mariadb.org/