To set up the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/CampX.git cd CampX
-
Install the necessary dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory with the following variables:DATABASE_URL=your_mongo_atlas_url CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name CLOUDINARY_API_KEY=your_cloudinary_api_key CLOUDINARY_API_SECRET=your_cloudinary_api_secret
-
Start the server:
npm start
-
Open your browser and navigate to
http://localhost:3000
to view the app.