Apollo Server with GraphQL and PostgreSQL Sample App
Technology Used:
Apollo Server
GraphQL
PostgreSQL
React
NodeJS
UI Library:
Material UI
Minimum Requirement:
Node 8+
NPM 6+
Please follow below mentioned step to run this project:
- Clone the repo
https://github.com/hemgoyal/student-classroom
- Install and start
PostgreSQL
DBMS and create a database with the details in the.env
:
CREATE DATABASE classroom;
CREATE USER classroom;
GRANT ALL PRIVILEGES ON DATABASE members TO postgres;
-
Edit the
server/.env
with the following settings:PORT=3000 DATABASE=classroom DATABASE_USER=classroom DATABASE_PASSWORD=postgres
-
Run
npm install
in both server and client folder. -
Follow below commands to start development server:
- In server folder:
npm run dev
- In client folder:
npm start
Backend server will start on http://localhost:4000
Client server will start on http://localhost:3000