An simple Express Server implemented using GraphQL and Apollo. This repo is attached to a series of articles with detailed explanations of the implementations:
Part 1: Implementing GraphQL using APollo on an Express Server - Use the
Part 2: Creating GraphQL Subscriptions in Express - Use the
The repo is also linked to another GraphQL-React-Apollo with front end implementations ing React using Apollo with corresponding articles.
Setup and Installation.
Note: Configure the port on the client code to match the CORs origin on this line.
git clone firstname.lastname@example.org:kimobrian/GraphQL-Express.git #for SSH git clone https://github.com/kimobrian/GraphQL-Express.git #for HTTPS cd GraphQL-Express npm i #Alternatively yarn npm start #Alternatively yarn start
For any issues with nodemon, install it globally.
npm install nodemon -g # Alternatively yarn global add nodemon
Navigate to localhost to experiment with different queries.
You can explore npx to avoid global installation of modules.