Sign inSign up

antoniocsjunior/easyquiz-graphql

By antoniocsjunior

•Updated over 4 years ago

GraphQL API for EasyQuiz app using NodeJS, TypeScript, Sequelize, Postgres.

Image
0

1.9K

antoniocsjunior/easyquiz-graphql repository overview

⁠easyquiz-graphql API

Actions Status License: MIT Codacy Quality Codacy Coverage Known Vulnerabilities Language Code size Repo size tested with jest

⁠Stack

⁠Useful Commands

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

Tag summary

Content type

Image

Digest

Size

36.7 MB

Last updated

over 4 years ago

docker pull antoniocsjunior/easyquiz-graphql