Skip to content
/ Book Public

This project used GraphQL and Apollo(Server, Client)

License

Notifications You must be signed in to change notification settings

phoique/Book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

1- GraphQL Server (Node.js + Apollo + GraphQL)

Clone this repo and go to server folder.

$ cd server

$ npm install OR yarn install

Server Enviroment variables

Create a file named ".env" in the root directory and fill its contents as follows.

PORT = 4000
DB_USERNAME = username
DB_PASSWORD = passwor
DB_URL = @xxxx.mlab.com:xxxxx
DB_NAME = datebase_name

Run the GraphQL Server

$ npm start OR yarn start

and go to localhost:4000/graphql

2- React Client (React.js + Apollo)

Clone this repo and go to client folder.

$ cd client
$ npm install OR yarn start

Enviroment variables

Create a file named ".env" in the root directory and fill its contents as follows.

REACT_APP_API_URI = http://localhost:4000/graphql

Run the React Client

$ npm start OR yarn start

and go to localhost:3000

About

This project used GraphQL and Apollo(Server, Client)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published