项目介绍

anomaly2104/lld-parking-lot 是一个托管在 GitHub 上的开源项目,主要使用 Java 编写,目前获得 175 个 Star、173 次 Fork。

仓库全名
anomaly2104/lld-parking-lot
Star 数
175
Fork 数
173
未关闭 Issue
5

README 摘要

Video explanation: https://youtu.be/7IX84K9g23U Connect with me and my offerings: https://enginebogie.com/u/anomaly2104 LLD Cohort: https://enginebogie.com/u/anomaly2104/offerings/PATH/e6cce7f1-6a56-4fe3-bb82-48e1876e4596 Multi-threading Cohort: https://enginebogie.com/u/anomaly2104/offerings/PATH/e9522ac1-4e4c-4217-92ba-f691f34c321b Low Level System Design - Parking lot Problem Statement Check here Project…

完整内容见 GitHub 原始 README 或本页 。

常见问题

lld-parking-lot 用什么语言开发?

主要使用 Java 编写,目前有 175 个 Star。

如何获取 lld-parking-lot 的源码?

可以直接克隆仓库:git clone https://github.com/anomaly2104/lld-parking-lot.git;安装与运行步骤见仓库 README。

lld-parking-lot 最近还在维护吗?

仓库最近一次更新为 2024年4月19日,当前有 5 个未关闭 Issue;Star 数为 175,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Repository for low level design solution of parking lot

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

Java
Ruby
Shell

README

Video explanation:

https://youtu.be/7IX84K9g23U

Connect with me and my offerings:

https://enginebogie.com/u/anomaly2104

LLD Cohort:

https://enginebogie.com/u/anomaly2104/offerings/PATH/e6cce7f1-6a56-4fe3-bb82-48e1876e4596

Multi-threading Cohort:

https://enginebogie.com/u/anomaly2104/offerings/PATH/e9522ac1-4e4c-4217-92ba-f691f34c321b


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.

评论

暂无评论