Simple implementation of GraphQL application in Node.js using Apollo server and MongoDB database.
- Clone this repo
git clone https://github.com/cheatsnake/graphql-nodejs-server
- Go to the cloned folder
cd ./graphql-nodejs-server
- Install dependencies
npm ci
- Create
.env
file with connection URL for MongoDB:
MONGODB_URL=mongodb://localhost:27017/test
- Run the development server:
npm run dev
- Go to http://localhost:4000 for testing