Skip to content

Setting up Front end and Back end

Jonh Alexis edited this page Dec 8, 2022 · 4 revisions

Configure .envs

Before starting the two programs, create .env files on both the server and the client.

  • Environment variables for the front-end .env.
VITE_SERVER_URL=
  • Environment variables for the back-end .env.
DB_HOST=
DB_USER=
DB_DATABASE=
DB_PASSWORD=
JWT_SECRET=
JWT_ISSUER=
JWT_AUDIENCE=
JWT_ACCESS_EXP=
JWT_REFRESH_EXP=
REDIS_HOST=
REDIS_USERNAME=
REDIS_PASSWORD=
REDIS_PORT=

Running the program

Run the following scripts on two separate terminals.

# Terminal 1

cd client
npm run dev
# Terminal 2

cd server
npm start
Clone this wiki locally