The Early Flood Detection System is Java application enables you to receive and transmit information about water levels in rivers, names of measurement points, GPS coordinates of the water level measurement point and measurement date
- Create, update and delete flood Detectors
- Read from CSV files
- Write to CSV files
- Retrieve flood Detectors by id
- Java
- Spring Framework
- Maven
To run this project locally, follow these steps:
- Clone the repository: git clone https://github.com/Danvace/Early-Flood-Detection.git
- Open project in your IDE
- Build project with command : mvn clean install
- Run the application with command : mvn spring-boot: run
- The application will start running on
http://localhost:8080
.
The following endpoints are available for interacting with the system:
GET /flood
: Retrieve a list of all flood Detectors.GET /flood/{id}
: Retrieve a specific flood Detector by ID.POST /flood
: Create a flood Detector(the body requires).PUT /flood/{id}
: Update an existing flood Detector.DELETE /flood/{id}
: Delete a flood Detector by ID.
The application stores data in CSV files located in the src/main/resources/floods
directory. Each file named with the format FloodDetector-yyyy-mm-dd.csv
.
Contributions to this project are welcome. To contribute, follow these steps:
- Fork the repository on GitHub.
- Create a new branch with a descriptive name.
- Make your changes and test them thoroughly.
- Commit your changes with clear commit messages.
- Push your branch to your forked repository.
- Submit a pull request, describing your changes in detail and explaining why they should be merged.
For any questions, please contact [[email protected]].