Express graphQL starter with GraphQL Modules.
- Registration
- Login
- Authentication
- Authorization
- Node.js
- Express
- MongoDB
- GraphQL Modules
- TypeScript
Yarn Yarn is what we use to manage API server dependencies, so we're going to need that. You can install it using Homebrew (or any of the other methods mentioned in the install docs):
You should install MongoDB on your local machine, or use other services such as mLab or Compose
After that, you will have to replace the mongoURL with your MongoDB address in lib/app.ts
git clone git@github.com:imranur8/garphql-modules-starter.git
Then install the dependencies
yarn install
Create your own local .env
file in the top-level directory. Make sure it's formatted like sample.env
with the right credentials. This file should not be checked into version control.
Run in development mode
yarn dev
Run in development mode with node inspect
yarn dev-debug
Run in production mode
yarn prod