Incident Map is a web application that visualizes incidents on an interactive map of India. Users can filter incidents by state, month, and year, making it easier to analyze and track data over time. Built with Next.js, TypeScript, Prisma, TailwindCSS, and MongoDB, this project showcases a full-stack implementation of modern web technologies.
MIT License
Incident Map is a web application that visualizes incidents on a map, allowing users to filter incidents by state, month, and year. The project is built using Next.js, TypeScript, Prisma, TailwindCSS, and MongoDB.
Before you begin, ensure you have the following installed:
Clone the repository:
git clone https://github.com/your-username/incident-map.git
cd incident-map
Install dependencies:
Using npm:
npm install
Using yarn:
yarn install
Set up the database:
Use Prisma to set up the MongoDB database.
npx prisma migrate dev --name init
This command applies any migrations and sets up your MongoDB schema.
Create a .env
file in the root directory and add the following environment variables:
DATABASE_URL="mongodb+srv://<username>:<password>@cluster0.mongodb.net/<database-name>?retryWrites=true&w=majority"
DATABASE_URL
: Your MongoDB connection string.To run the project locally, use the following command:
npm run dev
Or, if you're using yarn:
yarn dev
This command starts the Next.js development server on http://localhost:3000
.
Contributions are welcome! Please fork this repository, create a new branch, and submit a pull request.
git checkout -b feature/your-feature-name
git commit -m "Add feature: your feature name"
git push origin feature/your-feature-name
This project is licensed under the MIT License. See the LICENSE file for details.