GithubHelp home page GithubHelp logo

gd177 / lld-parking-lot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anomaly2104/lld-parking-lot

0.0 0.0 0.0 211 KB

Repository for low level design solution of parking lot

Shell 1.19% Ruby 0.41% Java 98.40%

lld-parking-lot's Introduction

Video explanation:

https://youtu.be/7IX84K9g23U


Low Level System Design - Parking lot

Problem Statement

Check here

Project Requirements

  • JDK 1.8
  • Maven
  • For Unit Tests:
    • Junit 4
    • Mockito

Compiling/Building and running the unit tests

Go to the project root folder and then run: ./bin/setup.sh

Runing the project

NOTE: Before running, please make sure you do the above setup step. Otherwise it will not run. The project can be run as follows in one of the two ways:

  1. Using file based input:: It accepts a filename as a parameter at the command prompt and read the commands from that file.
    ./bin/parking_lot.sh <input_filepath>
    Example: ./bin/parking_lot.sh ./file_input.txt
  2. Using file based input:: This will run the program in the interactive shell mode where commands can be typed in.
    ./bin/parking_lot.sh

Further Enhancements:

  • Dependency injection: Currently dependencies are injected manually. We can use some dependency injection framework like spring.
  • Exit command: Exit command is currently coupled with interactive mode only which makes it non-reusable.
  • Parking strategy: Parking strategy is currently associated with ParkingLotService. Instead of that, it makes more sense to associate it with ParkingLot.
  • Mode: Mode checking is currently done in main function directly. There could be a factory for that.

lld-parking-lot's People

Contributors

anomaly2104 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.