Skip to content

This project is a web application for calculating carbon emissions and managing vehicles and distances. It consists of a backend server built with Node.js, Express, and MongoDB, and a frontend client built with React and Bootstrap

License

Notifications You must be signed in to change notification settings

AbdulTur/CarbonRepayV2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CarbonRepayV2

This project is a web application for calculating carbon emissions and managing vehicles and distances. It consists of a backend server built with Node.js, Express, and MongoDB, and a frontend client built with React and Bootstrap.

Tech Stack

  • Backend:

    • Node.js
    • Express
    • MongoDB
  • Frontend:

    • React
    • Bootstrap

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to have the following software installed on your machine:

  • Node.js
  • npm (Node package manager)
  • MongoDB Atlas account

Installing

  1. Clone the repository:

    git clone https://github.com/your-username/CarbonRepayV2.git
    cd CarbonRepayV2
    
  2. Install backend dependencies:

    cd backend
    npm install
    
  3. Install backend dependencies:

    cd ../frontend
    npm install

Setting Up Environment Variables

  1. Create a .env file in the backend directory:

     MONGO_URI=your_mongo_db_connection_string
     PORT=5000
    
  2. Create a .env file in the frontend directory:

    REACT_APP_API_BASE_URL=BACKEND_PORT

Running the Application

  1. Run the backend server:

     cd backend
     npm install
     npm start
    
  2. Run the frontend client:

    cd frontend
    npm install
    npm start

Built With

Node.js Express MongoDB React Bootstrap

About

This project is a web application for calculating carbon emissions and managing vehicles and distances. It consists of a backend server built with Node.js, Express, and MongoDB, and a frontend client built with React and Bootstrap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages