Skip to content

imranur8/garphql-modules-starter

Repository files navigation

GraphQL Modules Starter

Express graphQL starter with GraphQL Modules.

Following feature is covered for User Entity

  • Registration
  • Login
  • Authentication
  • Authorization

Technology Stack

  • Node.js
  • Express
  • MongoDB
  • GraphQL Modules
  • TypeScript

Requirements

NodeJS

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):

Getting Started

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

Clone this repository

git clone git@github.com:imranur8/garphql-modules-starter.git

Then install the dependencies

yarn install

Start server

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

Testing