Skip to content

CivicSphere is a MERN app that supports UN SDG 11 by enabling urban planning, issue reporting, resource sharing, and AI-powered emergency alerts.

Notifications You must be signed in to change notification settings

akashgarine/CivicSphere

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

109 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŒ† CivicSphere

CivicSphere is a MERN stack-based web platform focused on Sustainable Cities and Communities, aligned with UN SDG Goal 11. It empowers citizens and communities to collaborate on urban improvement through planning, issue reporting, resource sharing, and AI-driven emergency response.


🌟 Features

  • πŸ” JWT-based authentication system
  • πŸ—ΊοΈ Regional Planning using real-time location data
  • πŸ“ Emergency Detection with severity levels using OpenWeather API and Gemini AI
  • πŸ› οΈ Issue Reporting with AWS S3 image uploads
  • πŸ“š Resource Sharing across communities
  • πŸ“Š Project Planning for sustainability initiatives

πŸ“ Folder Structure


CivicSphere/
β”œβ”€β”€ frontend/         # React.js + Tailwind CSS
β”œβ”€β”€ backend/          # Node.js + Express.js + MongoDB
β”œβ”€β”€ README.md
└── .env.example


πŸ§ͺ Installation & Setup

βš™οΈ 1. Clone the Repository

git clone https://github.com/akashsiripuram/CivicSphere.git
cd CivicSphere

πŸš€ 2. Backend Setup

cd backend
npm install

Create a .env file in the backend/ directory with the following structure:

PORT=8000
MONGODB_URI=mongodb+srv://<username>:<password>@cluster0.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0
JWT_SECRET=your_jwt_secret

AWS_REGION=eu-north-1
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret
AWS_BUCKET_NAME=bobinnovathon
AWS_BUCKET_URL=https://bobinnovathon.s3.eu-north-1.amazonaws.com

GEMINI_API_KEY=your_gemini_api_key

Start the backend server:

npm run dev

🌐 3. Frontend Setup

cd ../frontend
npm install
npm run dev

The frontend will be available at: http://localhost:5173


🧾 .env Example

# Backend Environment Variables

PORT=8000

# MongoDB
MONGODB_URI=mongodb+srv://CivicSphere:CivicSphere@cluster0.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0

# JWT
JWT_SECRET=secretkey

# AWS S3 for image storage
AWS_REGION=eu-north-1
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
AWS_BUCKET_NAME=bobinnovathon
AWS_BUCKET_URL=https://bobinnovathon.s3.eu-north-1.amazonaws.com

# Gemini AI API Key
GEMINI_API_KEY=your_gemini_api_key

πŸ‘¨β€πŸ’» Contributors

Name GitHub Profile
Siri Devoju @siridevoju
Akash Garine @akashgarine
Akash Siripuram @akashsiripuram

πŸ™Œ Acknowledgements


πŸ“¬ Feedback

Have suggestions, found a bug, or want to contribute?

Feel free to open an issue or submit a pull request.

Let’s build smarter, safer, and more sustainable cities together πŸŒπŸ™οΈ

About

CivicSphere is a MERN app that supports UN SDG 11 by enabling urban planning, issue reporting, resource sharing, and AI-powered emergency alerts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.1%
  • CSS 3.7%
  • HTML 0.2%