This is a full-stack implementation of a GraphQL server made using Apollo GraphQL.
- Install all the dependencies on both the client and the server side.
- Create a database in mongodb and put the url in
app.js
file in the suggested format. - Create env variables by the name
MONGO_ATLAS_USER
andMONGO_ATLAS_PW
to store the username and password of your mongodb username and password respectively. - If you are using
nodemon
to run your server, you can createnodemon.json
file in./server
directory with the env variables. - Run the server using
nodemon server.js
- Run the client using
npm start