An open API service indexing awesome lists of open source software.

https://github.com/athiththan11/dossier

Express.js Server backed with MongoDB and GraphQL
https://github.com/athiththan11/dossier

express-graphql express-server expressjs graphql mongodb

Last synced: 2 months ago
JSON representation

Express.js Server backed with MongoDB and GraphQL

Awesome Lists containing this project

README

          

# Dossier

An Express.js Backend Baked with MongoDB and GraphQL.

[Demo](https://dossier-server.herokuapp.com) | Deployed on Heroku

## Setup & Usage

clone or download the project and configure your `mongodb` connection url, by either following these 2 defined approaches ...

### .env

create a `.env` file in the root of your project folder and add the following ...

```env
MONGODB =
```

### app.js

replace the `mongodb` connection url in the `app.js` file ...

```javascript
// replace the `process.env.MONGODB` with your connection url
mongoose
.connect(process.env.MONGODB, {
promiseLibrary: require('bluebird'),
useNewUrlParser: true
}).then();
```

## Run

run the `server` using the following command from the root of the project folder ...

```shell
nodemon
```