EcoSphere is a sustainability-focused platform that helps communities promote eco-friendly practices such as resource sharing, waste reduction, recycling, and sustainable energy management. By integrating smart devices and data tracking, EcoSphere enables individuals and communities to reduce their environmental footprint and engage in collective sustainability goals.
- Resource Sharing & Booking: Share and book eco-friendly resources within the community.
- Waste Reduction & Recycling: Track waste, locate recycling centers, participate in eco-challenges, and view community leaderboards.
- Sustainable Energy Dashboard: Integrate smart home devices, monitor energy usage, receive personalized energy-saving recommendations, and contribute to community energy goals.
- Community Engagement: Create and track sustainability challenges, view leaderboards, and foster a sense of shared responsibility for the environment.
Ensure you have the following installed:
- Python 3.8+
- Django 4.0+
- PostgreSQL (or any other preferred database)
- Docker (optional, for containerized deployment)
-
Clone the repository:
git clone https://github.com/preciousimo/ecosphere-b.git cd ecosphere
-
Set up a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Configure the .env file:
Copy the .env.example file to .env and fill in the necessary environment variables such as database credentials and secret keys.
cp .env.example .env
-
Set up the database: Ensure your PostgreSQL database is running, then run:
python manage.py makemigrations python manage.py migrate
EcoSphere includes a robust API for managing resources, energy tracking, waste reduction, and community engagement. The API is built using Django REST Framework.
- GET
/api/resources/
– Retrieve a list of resources. - POST
/api/waste-entries/
– Submit a new waste tracking entry. - GET
/api/energy-usage/
– View energy consumption data for connected devices.
You can explore the API using tools like Postman or the built-in Django REST Framework browsable API at http://localhost:8000/api/
.
For detailed API documentation, check out the api/docs/
endpoint.
We welcome contributions from the community! If you'd like to contribute to EcoSphere, please follow these steps:
- Fork the repository.
- Create a feature branch:
git checkout -b feature/your-feature-name
. - Commit your changes:
git commit -m 'Add new feature'
. - Push to the branch:
git push origin feature/your-feature-name
. - Open a Pull Request.
Please ensure your code adheres to the project's style guidelines and passes all tests.
EcoSphere is licensed under the MIT License. See the LICENSE file for more details.