- add
.envfile with environment variables (seeexample.env);
PostgreSQL v11.4 is used as data source
- create database with a name that you set in
.env - run
npm run db:migrateto make all required migrations - run
npm run db:seedto insert mock data in the DB (optional)
Note: Sql dump is located under ./graphql-test-task.dump.sql.
To start app just run npm start.
P.S Do not forget to install npm modules (npm i).
Note: GraphQL Playground can be found on the following address <host>/graphql
- start the app by running
npm start - run
sh test.shto test query and mutations