Green Commute is a full-stack eco-friendly transportation platform designed to promote sustainable mobility through electric vehicle rentals, ride booking, carbon footprint tracking, and reward-based gamification. The platform encourages users to make environmentally conscious travel choices while earning rewards for reducing carbon emissions.
Live Demo: https://green-commute-sigma.vercel.app
Transportation contributes significantly to global carbon emissions. Green Commute provides users with a sustainable alternative by combining eco-friendly transportation services with environmental awareness tools.
The platform enables users to:
- Book eco-friendly rides
- Rent electric vehicles
- Plan optimized travel routes
- Calculate carbon emissions savings
- Earn EcoCoins for sustainable travel
- Compete on an environmental leaderboard
- Book sustainable transportation options
- Track ride history
- Earn EcoCoins for every ride
- View environmental impact
- Rent E-Bikes
- Rent E-Scooters
- Rent EV Cars
- View vehicle range and pricing
- Earn EcoCoins through rentals
- Interactive route planning
- Location search and navigation
- EV-friendly route optimization
- Integrated map visualization
- Compare traditional vehicle emissions with EV emissions
- Calculate carbon savings
- View environmental impact metrics
- Promote sustainable decision-making
- Compete with other users
- Rank based on EcoCoins earned
- Track carbon savings
- Encourage sustainable habits through gamification
- User Registration
- User Login
- JWT Authentication
- Protected Routes
- User Profile Management
- Earn EcoCoins for eco-friendly actions
- Track sustainability progress
- Leaderboard integration
- Reward-based engagement
The landing page provides users with access to ride booking and platform services.
Browse available electric vehicles and select suitable rental options.
Detailed rental listings displaying range, pricing, and EcoCoin rewards.
Plan routes efficiently with map-based navigation support.
Calculate CO₂ savings and compare eco-friendly transportation alternatives.
View rankings based on EcoCoins earned and carbon emissions reduced.
Frontend (React + Tailwind CSS)
│
▼
Backend API (Node.js + Express.js)
│
▼
MongoDB Atlas Database
│
▼
Authentication & Business Logic
- React.js
- Tailwind CSS
- React Router DOM
- Axios
- Lucide React
- Leaflet Maps
- Node.js
- Express.js
- JWT Authentication
- Bcrypt.js
- Nodemailer
- MongoDB Atlas
- Mongoose
- OpenStreetMap
- Leaflet.js
- Nominatim Geocoding API
- Vercel (Frontend)
- Render (Backend)
- MongoDB Atlas (Database)
Green-Commute
│
├── client
│ ├── public
│ ├── src
│ └── package.json
│
├── server
│ ├── controllers
│ ├── middleware
│ ├── models
│ ├── routes
│ ├── config
│ └── package.json
│
├── screenshots
│ ├── home.png
│ ├── rentals.png
│ ├── rentals2.png
│ ├── routeplanner.png
│ ├── carboncalc.png
│ └── leaderboard.png
│
└── README.mdgit clone https://github.com/your-username/green-commute.git
cd green-commutecd client
npm installcd ../server
npm installCreate a .env file inside the server directory:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
EMAIL_USER=your_email
EMAIL_PASS=your_email_password
CLIENT_URL=http://localhost:5173cd server
npm startcd client
npm run devApplication will be available at:
Frontend: http://localhost:5173
Backend: http://localhost:5000
POST /api/users/register
POST /api/users/login
GET /api/users/profilePOST /api/trips/book
GET /api/trips/history
GET /api/trips/statsGET /api/rentals
POST /api/rentals/bookPOST /api/carbon/calculateGreen Commute promotes:
- Reduced carbon emissions
- Electric mobility adoption
- Sustainable transportation practices
- Environmental awareness
- Green commuting habits
- Carbon footprint reduction
This project was collaboratively developed by a team of four students:
- Sumegh
- Mani
- Rakshitha
- Koushal Rao
https://green-commute-sigma.vercel.app
https://greencommute-api-p557.onrender.com
- Real-time ride booking integration
- Live EV charging station availability
- Google Maps Directions API integration
- EcoCoin redemption marketplace
- AI-powered route recommendations
- Mobile application support
- Ride-sharing and carpooling features
- Advanced sustainability analytics
Contributions are welcome.
- Fork the repository
- Create a feature branch
git checkout -b feature-name- Commit your changes
git commit -m "Add new feature"- Push to GitHub
git push origin feature-name- Open a Pull Request
This project is developed for educational and demonstration purposes.
Green Commute empowers users to reduce their environmental impact through sustainable transportation choices while making eco-friendly commuting simple, rewarding, and accessible.





