This is a simple project to demonstrate use of GraphQL.
It is the example project described in this tutorial
I have extended the app by adding option to add author and delete books.
Also I have used React+Typescript in the client app.
- GraphQL
- Express.js
- MongoDB
- React.js
- Typescript
After cloning the repo, go to server folder and add your mongo DB instance url in the config.js file.
You can get a free mongoDB instance from here
In server folder you can run npm install to install all dependencies.
In client folder you can run yarn or npm install
If you don't have already, install nodemon globally by running this command
npm install -g nodemon
Then in server folder, run nodemon app
It will run the server at port 4000
From another terminal window, in client folder, run yarn start or npm start
This will run the client app at port 3000
Now the app is accessible at http://localhost:3000/