LiKang6688 / Notes-GraphQL-API

an easy example to set up a GraphQL API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Guide

Technology stack

Nodejs Express GraphQL JsonWebToken Mongoose

install dev

npm install

Development run

npm run dev

visit http://localhost:4000/api to check Apollo Studio.

Install MongoDB Community Edition on macOS

Install Xcode Command-Line Tools

xcode-select --install

Install Homebrew

brew update
brew tap mongodb/brew
brew install mongodb-community@5.0

start MongoDB

brew services start mongodb-community

wipe out our entire collection

mongo

switch to database

use notedly

wipe out our entire collection

db.notes.remove({})
db.users.remove({})

About

an easy example to set up a GraphQL API


Languages

Language:JavaScript 100.0%