Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.54 KB

INSTALLATION.md

File metadata and controls

54 lines (43 loc) · 1.54 KB

Fork the Repository

Before starting the installation process, fork the repository to your GitHub account by clicking the "Fork" button at the top right of the repository page.

Installation

To set up the project locally, follow these steps:

  1. Clone the forked repository:

    git clone https://github.com/yourusername/CampX.git
    cd CampX
  2. Install the necessary dependencies:

    npm install
  3. Get the necessary environment variables: 3.1 MongoDB: Go to MongoDB website and sign up/Log in Create a new database in a cluster obtain it's DB URL 3.2 Cloudinary: Go to cloudinary website and sign up there create a new project and obtain the following fields CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name CLOUDINARY_KEY=your_cloudinary_api_key CLOUDINARY_SECRET=your_cloudinary_api_secret 3.3 Mapbox: Go to Mapbox website and sign up there to obtain the mapbox token

  4. Set up environment variables:

    Create a .env file in the root directory with the following variables:

    DB_URL=your_mongo_atlas_url
    CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name
    CLOUDINARY_KEY=your_cloudinary_api_key
    CLOUDINARY_SECRET=your_cloudinary_api_secret
    MAPBOX_TOKEN=your_mapbox_token
  5. Start the server:

    node app.js
  6. View the app: Open your browser and navigate to http://localhost:3000 to view the app.