Skip to content

ravesandstorm/Disaster-Management-Simulation-2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code-Phoenix-25

This repository contains the main simulation's frontend code for the hackathon conducted by E-Cell at IIIT Raipur, named "Code of the Phoenix" for 2025. This involves a project made possible using node package manager and external libraries, with a dynamic visualization of live disaster cases and resolution of disaster relief support from a central warehouse.

Jump to:

Working Dependencies Instructions Tech Stack

How it works

Two major open source libraries are used, separately in two javascript files, both of which run as dynamic servers. The server.js file is responsible to generate live disaster cases using the faker.js library, and the map.js handles the requests, including showing them on the map with the leaflet library and path generation using API calls to OpenStreetMaps.

Every few seconds, based on a variable, a "truck" is sent, which resolves a set number of cases, i.e. provides necessary relief to these cases. The average severity of these cases can then be graphed, which provides insights into if the current amount of supplies is able to reduce overall severity of the disaster. Based on the insights, the supplies can then be regulated for each area, making this useful as a simulation tool for emergency situations.

This implementation is only the main simulation, which I worked on. The entire project with frontend and analytics is hosted at: Sriyam's Repository

Dependencies to run

  • install node and npm packages in main folder
  • npm install express mongoose socket.io cors @faker.js/faker leaflet.animatedmarker
  • npm install -y
  • add "type": "module" in package.json file (you should have this after installing npm in the folder correctly)
  • npm install nodemon -D

Run the project

  • use cd <folder name> till you reach the project folder
  • run servers for 'http' website and 'faker' requests in different terminals
  • node server.js
  • python -m http.server 8000

Tech Stack

  • Frontend (server.js): HTML, CSS, JavaScript, Leaflet.js
  • Backend (map.js): Node.js, Express.js, Faker.js
  • Miscellaneous: OpenStreetMaps (API), socket.io (file communication), npm (library manager)

About

Code for the hackathon "Code of the Phoenix" 2025.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors