API for the shadowverse tools app using the NestJS framework.
- Setup docker
- Create a
.env
file from the.env.example
template
# Start docker compose
$ docker-compose -f docker-compose-dev.yml up
# Querying the database
$ docker exec -it shadowverse-tools-db bash -l
$ > psql -U {{ USERNAME }} -h localhost -d {{ DATABASE_NAME }}
# Running NestJS CLI commands
$ docker exec -it shadowverse-tools-api nest g [command] [name]
# Migrate
$ docker exec -it shadowverse-tools-api npx sequelize-cli db:migrate
# Create migration/seeder
$ docker exec -it shadowverse-tools-api npx sequelize-cli migration:create --name name-of-migration
$ docker exec -it shadowverse-tools-api npx sequelize-cli seed:create --name name-of-seeder