Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rahulvyas1/parkinglot-api
Parkinng Lot API
https://github.com/rahulvyas1/parkinglot-api
Last synced: 25 days ago
JSON representation
Parkinng Lot API
- Host: GitHub
- URL: https://github.com/rahulvyas1/parkinglot-api
- Owner: rahulvyas1
- Created: 2020-10-04T16:16:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-04T16:24:06.000Z (over 4 years ago)
- Last Synced: 2024-10-28T12:47:03.254Z (2 months ago)
- Language: JavaScript
- Size: 182 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Noice Parking Lot API
Develop a parking lot application where we should be able perform following operations:
- Parking manager can create a parking lot with desired parking spaces/slots (Assume there is one parking manager and he will create one parking lot)
- User can park his vehicle in the nearest parking slot available (eg if parking slots are numbered 1,2,3....n, then we still start from 1 and pick the one that is available). There can be different parking strategies in future.
- User can unpark his vehicle
- When user unparks, response should be success along with the parking fee that will be calculated as Rs. 10 _ Number of hours the vehicle has been parked. eg If parked for 1 hour 5 minutes , it will be 10 _ 2 = 20
- Parking manager can put any parking space/slot into maintenance mode and back to working state at any time.### Run Database
```
> docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -e MYSQL_DATABASE=noice -d mysql
```Todo- convert to docker compose