{"id":15058853,"url":"https://github.com/priyam-03/disaster-inventory","last_synced_at":"2025-04-10T13:13:32.332Z","repository":{"id":252455656,"uuid":"839483297","full_name":"Disaster-Management-Project/Disaster-inventory","owner":"Disaster-Management-Project","description":"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.","archived":false,"fork":false,"pushed_at":"2024-09-21T05:34:04.000Z","size":2901,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T11:56:54.935Z","etag":null,"topics":["caching","mongodb","nextjs","openstreetmap","prisma","server-actions","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"https://disaster-inventory.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Disaster-Management-Project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-07T17:45:13.000Z","updated_at":"2024-11-27T08:47:05.000Z","dependencies_parsed_at":"2024-08-09T22:24:02.246Z","dependency_job_id":"eac81022-1500-4931-b3e2-3a43529fa36b","html_url":"https://github.com/Disaster-Management-Project/Disaster-inventory","commit_stats":null,"previous_names":["priyam-03/disaster-inventory"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Disaster-Management-Project%2FDisaster-inventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Disaster-Management-Project%2FDisaster-inventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Disaster-Management-Project%2FDisaster-inventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Disaster-Management-Project%2FDisaster-inventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Disaster-Management-Project","download_url":"https://codeload.github.com/Disaster-Management-Project/Disaster-inventory/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225653,"owners_count":21068078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["caching","mongodb","nextjs","openstreetmap","prisma","server-actions","tailwindcss","typescript"],"created_at":"2024-09-24T22:31:48.996Z","updated_at":"2025-04-10T13:13:31.993Z","avatar_url":"https://github.com/Disaster-Management-Project.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Landslides Map\n\nIncident 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.\n\n## Table of Contents\n\n- [Features](#features)\n- [Tech Stack](#tech-stack)\n- [Setup Instructions](#setup-instructions)\n- [Environment Variables](#environment-variables)\n- [Running the Project](#running-the-project)\n- [Folder Structure](#folder-structure)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n\n- Display incidents on an interactive map.\n- Filter incidents by state, month, and year.\n- Responsive design using TailwindCSS.\n- Full-stack implementation using Next.js and Prisma with MongoDB.\n\n## Tech Stack\n\n- **Next.js**: React framework for server-rendered applications.\n- **TypeScript**: Typed JavaScript for better code quality and developer experience.\n- **Prisma**: ORM (Object-Relational Mapping) for connecting to MongoDB.\n- **MongoDB**: NoSQL database for storing incident data.\n- **TailwindCSS**: Utility-first CSS framework for styling.\n- **Vercel**: For Deployment.\n\n## Setup Instructions\n\n### Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- **Node.js**: Version 14 or higher.\n- **npm** or **yarn**: Latest version.\n- **MongoDB**: A running instance of MongoDB.\n\n### Installation\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/your-username/incident-map.git\n   cd incident-map\n   ```\n\n2. **Install dependencies:**\n\n   Using npm:\n\n   ```bash\n   npm install\n   ```\n\n   Using yarn:\n\n   ```bash\n   yarn install\n   ```\n\n3. **Set up the database:**\n\n   Use Prisma to set up the MongoDB database.\n\n   ```bash\n   npx prisma migrate dev --name init\n   ```\n\n   This command applies any migrations and sets up your MongoDB schema.\n\n## Environment Variables\n\nCreate a `.env` file in the root directory and add the following environment variables:\n\n```plaintext\nDATABASE_URL=\"mongodb+srv://\u003cusername\u003e:\u003cpassword\u003e@cluster0.mongodb.net/\u003cdatabase-name\u003e?retryWrites=true\u0026w=majority\"\n\n```\n\n- `DATABASE_URL`: Your MongoDB connection string.\n\n## Running the Project\n\nTo run the project locally, use the following command:\n\n```bash\nnpm run dev\n```\n\nOr, if you're using yarn:\n\n```bash\nyarn dev\n```\n\nThis command starts the Next.js development server on `http://localhost:3000`.\n\n\n## Contributing\n\nContributions are welcome! Please fork this repository, create a new branch, and submit a pull request.\n\n### Steps to Contribute\n\n1. Fork the repository.\n2. Create a new branch:\n   ```bash\n   git checkout -b feature/your-feature-name\n   ```\n3. Make your changes.\n4. Commit your changes:\n   ```bash\n   git commit -m \"Add feature: your feature name\"\n   ```\n5. Push to the branch:\n   ```bash\n   git push origin feature/your-feature-name\n   ```\n6. Open a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpriyam-03%2Fdisaster-inventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpriyam-03%2Fdisaster-inventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpriyam-03%2Fdisaster-inventory/lists"}