You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Private routes use a middleware to check if session is valid @ /middlware/checkSession.js
Environment Variables
Create a new .env file in the root directory of the app and add the following variables
PG_URI: Postgres database connection URI
PG_USER: Postgres database user
PG_PASSWORD: Postgres database password
PG_HOST: Postgress database server host
SESSION_SECRET: Express session secret
COOKIE_NAME: Session cookie name
COOKIE_SECRET: Session cookie secret
Client installation
Create a folder in the root directory named client and install the client of your choice. Remember that CORS is enabled and only allows access to same site or PORT 3000. Change it as neccesary @ server.js (line 12).