GraphQL API for a clients & projects
that has Creating, Updating and Deleting implementations for both project and client info
Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. It is responsible for serving the server
Express-GraphQL is the simplest way to run a GraphQL API server is to use Express, a popular web application framework for Node.js. It is responsible for connecting expressjs and graphql
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more. It is responsible for defining the graphQL query schemas and providing the GrapphQL schema types
Mongoose offers Object Data Modelling, basically a neater way to work with mongoDB in this case. It is responsible for Object Data Modelling
Go ahead and clone this repo git clone https://github.com/muriukialex/comapp-server.git
then run yarn add
or npm i
- Create a MongoDB
- Create a
.env
file then;
cp .env.sample .env
- In your
.env
file, replace the following with your credentials and MongoDB connection string
MONGODB_USERNAME=username /*your MongoDB username*/
MONGODB_PASSWORD=password /*your MongoDB db password*/
MONGODB_CLUSTER=MongoDB_cluster /*your MongoDB connection string*/
- Start the server
yarn dev
OR
npm run dev
This project was made following through Brad Traversy's GraphQL tutorial. Thanks Brad