https://github.com/fireplank/drone-violators
An assignment project for a job application.
https://github.com/fireplank/drone-violators
Last synced: about 1 month ago
JSON representation
An assignment project for a job application.
- Host: GitHub
- URL: https://github.com/fireplank/drone-violators
- Owner: FirePlank
- License: gpl-3.0
- Created: 2023-01-06T23:21:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T12:01:40.000Z (over 3 years ago)
- Last Synced: 2025-03-22T15:37:39.420Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://drone-violators.vercel.app
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Drone Violation Tracker
This web application is an assignment project for a job application that is meant to help authorities track and contact drone pilots who have recently violated the no-drone zone (NDZ) within 100 meters of a bird nest. The app displays the pilot's name, email, phone number, and the closest confirmed distance to the nest. The pilot information is persisted for 10 minutes since their drone was last seen by the monitoring equipment. The app automatically updates the information in real-time without requiring manual refresh.
## Installation and usage
1. Clone the repository:
`git clone https://github.com/FirePlank/Drone-violators.git`
2. Install the dependencies:
`cd Drone-violators`
`npm install`
3. Rename the `.env.local.example` file to `.env.local` and add the MongoDB URL to the `MONGODB_URI` variable.
4. Run the development server:
`npm run dev`
The app will be running at http://localhost:3000.
## API Endpoints
- `/api/drone`: Fetches the violators informations from external APIs.
## Limitations
The app may not be updated with the latest violator information if the website has not been visited in awhile. This is because the website is hosted for free and does not have server tasks running every other second to update the violators manually without visitors. In a production environment, server tasks can be used to keep the information up to date.