GraphQL API for EasyQuiz app using NodeJS, TypeScript, Sequelize, Postgres.
1.9K
First of all, create a .env file and configure its variables following .env.example
Run tests
npm test
Starts database container
docker run -d --name postgres \
-e POSTGRES_DB=<DB_NAME> \
-e POSTGRES_PASSWORD=<DB_PASSWORD> \
-e POSTGRES_USER=<DB_USER> \
-v /home/docker/postgres:/var/lib/postgresql/data \
-p 5432:5432 \
postgres:12
Run the application locally in dev mode
npm run dev
Build an image from Dockerfile
docker build -t <IMAGE_NAME>:<TAG> .
Start services specified in docker-compose.yml
docker-compose up -d
Build the service before starting services
docker-compose up -d --build
Start application in a container from docker hub image
docker run --name easyquiz-graphql -d --env-file .env -p <PORT>:<PORT> antoniocsjunior/easyquiz-graphql
Content type
Image
Digest
Size
36.7 MB
Last updated
over 4 years ago
docker pull antoniocsjunior/easyquiz-graphql