Skip to content

Design and implementation of RESTful APIs for the Car Parking System

Notifications You must be signed in to change notification settings

nihalmallad/parking-lot-new

Repository files navigation

Parking Lot

The following are used in the project

  • NestJS
  • Swagger API Documentation
  • Docker

Algorithms

  • Priority Queue (min) is used for the nearest parking slot allocation to achieve the best time complexity

  • Map<> is used as a in-memory database to store the parking slots details

  • Set<> is used to hold the unique vehicle registration numbers

image info

Docker

Build the docker image

$ docker build -t parking-lot .

Run the container

$ docker run -p3000:3000 parking-lot

Browse the API swagger documentation:

http://localhost:3000/api

Local

Installation

$ npm install

Running the app

$ npm run start

Test

# unit tests
$ npm run test

Author - Nihal Mallad

About

Design and implementation of RESTful APIs for the Car Parking System

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages