Boilerplate code to setup express apis with graphql
Run the following command and the APIs will the available locally for testing and development.
git clone https://github.com/vijaykrishnavanshi/express-graphql-boilerplate.git <project-name>
cd project-name
npm install
npm run dev
npm run lint # for cheking the lint error
npm run lint:fix # for fixing the minor lint error
Used Mocha
npm run test # for running tests
npm run deploy # for deploying the project
log/
Logs of the running server
src/
generator/
<generator.js>
graphql/
<module-1>/
Query/
Mutation/
Subscriptions/
<New TypeDef in GQL>
<module-2>/
Query/
Mutation/
Subscriptions/
<New TypeDef in GQL>
models/
<model-1>
<model-2>
<index.js>
utils/
<logger.js>
package.json
README.md
LICENSE
Dockerfile
- Add generator for autogenerating new GQL type and Query/Mutation for any module
- Add test generator for autogenerating new test for any module in GQL