-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up Front end and Back end
Jonh Alexis edited this page Dec 8, 2022
·
4 revisions
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=
Run the following scripts on two separate terminals.
# Terminal 1
cd client
npm run dev
# Terminal 2
cd server
npm start