Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/email2vimalraj/graphql-heroku
A basic Mongo Express GraphQL Node (MEGN) example source code
https://github.com/email2vimalraj/graphql-heroku
apollo apollo-server-express apollographql express expressjs graphql graphql-server heroku herokuapp javascript mongodb mongoose mongoosejs node nodejs
Last synced: about 2 months ago
JSON representation
A basic Mongo Express GraphQL Node (MEGN) example source code
- Host: GitHub
- URL: https://github.com/email2vimalraj/graphql-heroku
- Owner: email2vimalraj
- License: mit
- Created: 2018-02-06T17:20:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-06T19:11:01.000Z (almost 7 years ago)
- Last Synced: 2023-10-20T19:40:04.831Z (about 1 year ago)
- Topics: apollo, apollo-server-express, apollographql, express, expressjs, graphql, graphql-server, heroku, herokuapp, javascript, mongodb, mongoose, mongoosejs, node, nodejs
- Language: JavaScript
- Homepage: http://www.vimalselvam.com/2018/02/07/deploying-graphql-server-on-heroku/
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Deploying Graphql Server on Heroku
This repo contains a basic Mongo Express GraphQL Node (MEGN) example code.## Pre-requisites
- NodeJS
- Mongodb and server should be running if local## Setup
- Clone this repo
- Run `yarn` or `npm install` from the cloned directory
- Run `yarn start` or `npm start` to start the graphql server on 3000 port by default.## Demo
Launch [https://graphql-heroku.herokuapp.com/](https://graphql-heroku.herokuapp.com/?operationName=Users&query=query%20Users%20%7B%0A%20%20users%20%7B%0A%20%20%20%20name%0A%20%20%20%20password%0A%20%20%7D%0A%7D%0A%0Amutation%20addUser%20%7B%0A%20%20addUser(input%3A%20%7B%0A%20%20%20%20name%3A%20%22Vimal%22%2C%0A%20%20%20%20password%3A%20%22secret%22%0A%20%20%7D)%20%7B%0A%20%20%20%20name%0A%20%20%20%20password%0A%20%20%7D%0A%7D) to access the GraphiQL.