Express REST API and Apollo graphQL server with typescript
- Node.js
- Express
- MongoDB
- TypeScript
- Apollo
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/backend-api.git
Then install the dependencies
yarn install
Run in development mode
yarn dev
Run in development mode with node inspect
yarn dev-debug
Build api documentations
yarn apidoc
Open /docs/index.html in browser for api documentations details.