cheatsnake / graphql-nodejs-server

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:JavaScript 100.0%