Welcome to CarbonEase, a professional Carbon Credit Trading Platform built using the MERN (MongoDB, Express.js, React.js, Node.js) stack. It enables seamless buying, selling, and tracking of carbon credits in both compliance and voluntary markets, ensuring a secure and efficient trading experience.
🔗 Check out the live version: CarbonEase
✔️ User Authentication & Authorization (JWT-based security)
✔️ Gmail OTP Verification for Secure Login
✔️ Carbon Credit Listing & Management (Create, update, and delete listings)
✔️ Payment Integration for Buying Carbon Credits (Stripe)
✔️ Emissions & Credit Tracking Dashboard (Real-time analytics)
✔️ Integration with Carbon Credit Verification Services
- ⚛️ React.js (Component-based UI)
- 🏗️ ShadCN (Modern UI Components)
- 🌊 Tailwind CSS (Utility-first styling)
- 📜 React Context API (State management)
- 🚀 Node.js & Express.js (RESTful API)
- 🔐 JSON Web Tokens (JWT) (Secure authentication)
- 📧 Nodemailer (Gmail OTP verification)
- 💳 Stripe (Payment integration)
- 🛢️ MongoDB (NoSQL) (Flexible & scalable storage)
- 📊 Mongoose ORM (Schema-based validation)
Ensure you have the following installed:
- Node.js (v14 or later)
- MongoDB (Local or cloud instance)
- npm (Package manager)
1️⃣ Clone the repository:
git clone https://github.com/nxtnilesh/carbonEase.git
cd carbonEase2️⃣ Install dependencies:
npm install3️⃣ Configure environment variables:
- Create a
.envfile in the root directory. - Add the required variables:
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_secret_key
SMTP_CONFIG=your_smtp_settings
STRIPE_API_KEY=your_stripe_key4️⃣ Run the development server:
npm run dev5️⃣ Access the application:
Visit http://localhost:3000 in your browser.
carbonEase/
├── backend/ # Express.js backend
│ ├── controllers/ # Business logic
│ ├── models/ # Mongoose models
│ ├── routes/ # API routes
│ ├── utils/ # Utility functions
│ ├── config/ # Configuration files
│ └── index.js # Entry point
│
├── frontend/ # React.js frontend
│ ├── components/ # Reusable components
│ ├── context/ # Context API for state management
│ ├── pages/ # Page components
│ ├── styles/ # Tailwind styles
│ ├── services/ # API call logic
│ └── App.js # Main application file
│
└── README.md # Project documentation
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/register |
Register a new user |
| POST | /api/auth/login |
User login |
| POST | /api/auth/verify-otp |
OTP Verification |
| GET | /api/credits |
Get all carbon credits |
| POST | /api/credits |
Create a new listing |
| PATCH | /api/credits/:id |
Update a listing |
| DELETE | /api/credits/:id |
Delete a listing |
| POST | /api/payment |
Process a payment |
🌱 Empowering a sustainable future through technology!


