A. INSTALL NODE MODULES
- Run NPM Install from Root Folder ---- server-side
- Move inside Client folder with cd client and Run NPM Install ---- client-side
B. CREATE
Create .env file in the root folder i.e. Config.env ---- Paste Below Values -- remove numbering
-
NODE_ENV=development
-
PORT=8000
-
DATABASE=<YOUR_MONGO_URL_PASTE_HERE> ----- Don't wrap with '';
-
DATABASE_PASSWORD=<YOUR_MONGO_DB_PASSWORD> ----- Don't wrap with '';
-
JWT_SECRET=<ANY_JWT_SECRET> ---- Anything String etc --- i.e. i_am_ultra_long_password
-
JWT_EXPIRES_IN=9d
-
JWT_COOKIE_EXPIRES_IN=90
C. CHANGE RUNTIME
- Move to Client folder and check websocket point, Make Sure it corresponds to below URI
- uri : 'ws://localhost:8000/graphql Note. (If your backend is on port 5000 change above 8000 post to 5000 and so on. By defualt the Port is set to 8000.)
D. RUN APPLICATION
- npm run dev ----- Will Run Application