Welcome to the Robotix Club 2024 Website project! Follow the steps below to set up and run the application locally.
To run the website locally, you'll need to install the necessary dependencies for both the client and server. Use the following commands:
Client-side:
cd client
npm install
Server-side:
cd server
npm install
Create a .env file in the root of the server directory with the following content:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=set_your_JWT_Secret
# Google OAuth credentials
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
SESSION_SECRET=your_session_secret
Once all dependencies are installed and environment variables are configured:
Start the Client:
cd client
npm run dev
Start the Server:
cd server
npm run dev
Your website will be running locally on http://localhost:5173