Welcome to the Prime Fitness Gym Website repository! This repository contains the codebase for our gym's website.
git clone <repository-url>
cd backend
npm install
Create a file named config.env
in the backend
folder and add the following environment variables:
PORT=5000
DATABASE=<YOUR_MONGODB_URI>
JWT_SECRET=<YOUR_JWT_SECRET>
JWT_EXPIRES_IN=90d
cd frontend
npm install
Create a file named .env
in the root of the frontend
folder and add the following environment variable:
REACT_APP_API_URL=http://localhost:5000/api/v1
In the backend folder, navigate to the data folder and run the following command:
cd backend/Data/data
node import-dev-data.js
Once you've set up the project, you can run the backend and frontend servers:
cd backend
npm start
cd frontend
npm start