Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 558 Bytes

File metadata and controls

37 lines (24 loc) · 558 Bytes

GraphQL server in Node.js

Simple implementation of GraphQL application in Node.js using Apollo server and MongoDB database.

Usage

  1. Clone this repo
git clone https://github.com/cheatsnake/graphql-nodejs-server
  1. Go to the cloned folder
cd ./graphql-nodejs-server
  1. Install dependencies
npm ci
  1. Create .env file with connection URL for MongoDB:
MONGODB_URL=mongodb://localhost:27017/test
  1. Run the development server:
npm run dev
  1. Go to http://localhost:4000 for testing