Skip to content

snj07/parking-lot-system

Repository files navigation

ParkingLot System

Project Tech Stack:

Programming Language : Java
Build tool: Gradle
Unit testing: JUnit5
System requirement: JDK 1.8 or above

Note: You don't need to install any project dependency as repository has gradle wrapper to handle it.

Project structure:

  1. constants: Project related constants including error messages, output messages, command constants and regex
  2. controller: contains classes to handle input from console/file and command execution
  3. dao: contains classes to handle data
  4. enums: contains project related enums including custom error codes
  5. exception: contains project specific exception
  6. model: contains data models
  7. observers: contains observers for ParkingLot commands to capture the output of commands
  8. service: contains business logic classes for ParkingLot system
  9. strategy: contains project strategies currently having Parking strategy
  10. utils: contains utility methods for reading the file
  11. Main.java contains main method to run the project

Commands to run project:

Please update the absolute path of the input file in the below command

gradlew build
gradlew run --args "H:\Workspaces\intelliJ\parkinglot_system\src\main\resources\input.txt"

Command to run project using Jar file

Please update the absolute path of the input file in the below command

java -jar parkinglot_system-1.0-SNAPSHOT.jar "H:\Workspaces\intelliJ\parkinglot_system\src\main\resources\input.txt"

Commands to run unit test:

gradlew clean test

About

Parking Lot system design Java implementation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages