Skip to content

Advanced GraphQL and Node.js starter for production app setup

License

Notifications You must be signed in to change notification settings

CodeCreateHQ/gem.js

Repository files navigation

GEM.js

Build Status Greenkeeper badge GitHub

GEM stands for GrpahQL - Express - MongoDB

Run the project locally (Development)

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

Lint Project

npm run lint  # for cheking the lint error
npm run lint:fix # for fixing the minor lint error

Run Tests

Used Mocha

npm run test  # for running tests

Deploy the project

npm run deploy  # for deploying the project

Directory Structure:

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

Plans

  • 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

Explore

About

Advanced GraphQL and Node.js starter for production app setup

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published