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.
-
Backend:
- Node.js
- Express
- MongoDB
-
Frontend:
- React
- Bootstrap
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to have the following software installed on your machine:
- Node.js
- npm (Node package manager)
- MongoDB Atlas account
-
Clone the repository:
git clone https://github.com/your-username/CarbonRepayV2.git cd CarbonRepayV2
-
Install backend dependencies:
cd backend npm install
-
Install backend dependencies:
cd ../frontend npm install
-
Create a .env file in the backend directory:
MONGO_URI=your_mongo_db_connection_string PORT=5000
-
Create a .env file in the frontend directory:
REACT_APP_API_BASE_URL=BACKEND_PORT
-
Run the backend server:
cd backend npm install npm start
-
Run the frontend client:
cd frontend npm install npm start
Node.js Express MongoDB React Bootstrap