Empowering 160 million Bangladeshis to build a sustainable future โ one action at a time.
Quick Start โข Features โข Tech Stack โข Contributing โข License
Bangladesh is one of the world's most climate-vulnerable nations:
- ๐ 70% of the country is less than 1 meter above sea level
- ๐ก๏ธ Increasing cyclones, floods, and extreme weather events
- ๐ญ Rapid urbanization driving air quality issues in major cities
- โป๏ธ Rivers like Buriganga among the most polluted globally
Eco Track Bangladesh transforms this challenge into an opportunity โ giving citizens the tools, knowledge, and community to drive meaningful environmental change.
|
Track your daily emissions from electricity, transportation, and waste. Visualize trends and get personalized recommendations. Learn about environmental topics with gamified quizzes. Multiple difficulty levels with detailed explanations. Build sustainable habits with curated eco-challenges designed for the Bangladeshi context. |
Share tips, learn from fellow citizens, and build a network of eco-conscious individuals. Discover recycling centers, parks, and upcoming environmental events across Bangladesh. Plant trees virtually with real-world impact tracking. Each tree absorbs 20-50 kg COโ/year. |
- Badges & Achievements โ Earn rewards for completing challenges and reaching milestones
- Leaderboards โ Foster friendly competition in your community
- Personal Dashboard โ Comprehensive analytics of your environmental impact
- Multilingual Support โ Available in English and Bengali (เฆฌเฆพเฆเฆฒเฆพ)
- Node.js v18+ or Bun
- Backend API โ EcoTrack Backend (separate repository)
# Clone the repository
git clone https://github.com/yourusername/ecotrack_bd.git
cd ecotrack_bd
# Install dependencies
npm install
# or
bun install
# Configure environment
cp .env.example .env
# Edit .env with your API URL
# Start development server
npm run dev
# or
bun devCreate a .env file in the root directory:
VITE_API_URL=http://localhost:3000/api| Variable | Description | Default |
|---|---|---|
VITE_API_URL |
Backend API base URL | http://localhost:3000/api |
| Layer | Technology | Purpose |
|---|---|---|
| UI Library | React 18 | Component-based UI |
| Language | TypeScript | Type safety |
| Build Tool | Vite | Fast development & bundling |
| Styling | Tailwind CSS | Utility-first CSS |
| Routing | React Router 7 | Client-side navigation |
| Charts | Recharts | Data visualization |
| Maps | React Leaflet | Interactive maps |
| Animations | Framer Motion | Smooth animations |
| Icons | Lucide React | Beautiful icon set |
src/
โโโ components/ # Reusable UI components
โ โโโ Navbar.tsx # Navigation bar
โ โโโ Footer.tsx # Site footer
โ โโโ ...
โโโ contexts/ # React context providers
โ โโโ AuthContext.tsx # Authentication state
โ โโโ ThemeContext.tsx# Dark/light mode
โ โโโ LanguageContext.tsx # i18n support
โโโ pages/ # Route pages
โ โโโ Home.tsx # Landing page
โ โโโ Dashboard.tsx # User dashboard
โ โโโ Calculator.tsx # Carbon calculator
โ โโโ ...
โโโ lib/ # Utilities & API
โ โโโ api.ts # API client functions
โโโ utils/ # Helper functions
The frontend connects to a REST API with these main endpoints:
| Endpoint | Description |
|---|---|
/api/auth/* |
Authentication (signup, login, verify) |
/api/profile |
User profile management |
/api/carbon |
Carbon footprint tracking |
/api/challenges |
Daily eco-challenges |
/api/community/* |
Posts, comments, likes |
/api/quiz/* |
Quiz questions & attempts |
/api/badges |
User achievements |
/api/eco-locations |
Eco-friendly places |
/api/eco-events |
Environmental events |
/api/planting/* |
Tree planting system |
/api/leaderboard |
User rankings |
We welcome contributions from everyone! Here's how you can help:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
| Area | Description |
|---|---|
| ๐ Localization | Improve Bengali translations |
| ๐จ UI/UX | Enhance design and accessibility |
| ๐ Documentation | Improve guides and tutorials |
| ๐ Bug Fixes | Report and fix issues |
| โจ Features | Propose and implement new features |
| ๐งช Testing | Add unit and integration tests |
|
1,000+ active users |
500+ tons COโ reduced |
National recognition |
This project is licensed under the MIT License โ see the LICENSE file for details.
- The resilient people of Bangladesh ๐ง๐ฉ
- Environmental organizations protecting our natural resources
- The amazing open-source community
- All contributors who make this project better
Built with ๐ for a greener Bangladesh
"The best time to plant a tree was 20 years ago. The second best time is now."