muriukialex / comapp-server

graphQL server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

comapp-server

Description

GraphQL API for a clients & projects that has Creating, Updating and Deleting implementations for both project and client info

Technologies

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

How to Use

Go ahead and clone this repo git clone https://github.com/muriukialex/comapp-server.git then run yarn add or npm i

Test out the server

  1. Create a MongoDB
  2. Create a .env file then;
cp .env.sample  .env
  1. 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*/
  1. Start the server
yarn dev

OR

npm run dev
Credits ๐Ÿ™๐Ÿพ

This project was made following through Brad Traversy's GraphQL tutorial. Thanks Brad

About

graphQL server


Languages

Language:JavaScript 100.0%