/ts-graphql-boilerplate

A graphql boilerplate wrapped into docker container

Primary LanguageTypeScript

TS-GraphQL boilerplate / starter kit

A GraphQl server based solution made with node js,typescript,graphql,typeORM,jwt,docker,docker-compose,mongodb

Requirments

  • docker 19+
  • docker-compose 1.21.0+

Installation

  • clone the projet from the git repository

  • under the projet directory execute

$ npm install

Running in development enviroment

$ bash /scripts/script-dev.sh
  • Run node js using nodemon ( we use nodemon to watch for file changes and restart the server )

note that we use the flag -L to be able to restart the server inside the docker container

Test Image 7

  • Mongo admin ui will be displayed on http://localhost:8082/

  • Add random connection name and put (mongodb://mongodb/myappdb) on connection string section

Test Image 7

Running in production enviroment

$ bash /scripts/script-prod.sh
  • triggering multistage build on docker container and running the project on production mode