Coder Social home page Coder Social logo

parking-management-system's Introduction

parking-management-system

Steps to start the application

Locally :

  1. Clone the application in eclipse/intelliJ
  2. On running - it will by default start on http://localhost:8080
  3. H2 Console will get available on : http://localhost:8080/h2-console
  4. H2 console will be accessible using default credentials : sa/password
  5. The postman collection is attached inside the directory /design

Docker

  1. Open Terminal at project base location
  2. Run mvn clean install to verify the installation and tests
  3. Run docker build --tag=parking-management-system-latest .
  4. Run docker run -p8080:8080 parking-management-system-latest
  5. Test the application by hitting http://localhost:8080/parking/123

Features

  • Create Parking Space Curl : curl --location --request POST 'http://localhost:8080/parking' \ --header 'Content-Type: application/json' \ --data-raw '{ "parkingName": "BLR Parking1", "city": "Bangalore", "small": 5, "medium": 5, "large": 5, "extraLarge": 5 }'

  • Allocate Parking Space Curl : curl --location --request POST 'http://localhost:8080/getslot/01db76ae-e9d5-40f7-ac1d-c733f7fb18df/EXTRALARGE?carNumber=KA05KY1352'

  • Release Parking Space Curl : curl --location --request POST 'http://localhost:8080/releaseslot/0845eb64-ac40-4f68-9a20-a365e66fd328/4e7e06d1-a5bc-4254-a090-ab66bc05c415'

  • Get Current Parking Status Curl : curl --location --request GET 'http://localhost:8080/parking/01db76ae-e9d5-40f7-ac1d-c733f7fb18df'

Test Coverage

The project has test coverage of 100% for controllers, 98.2% for all the services.

Technologies used

Java 17, Spring Boot 3.0.1 and SQL - H2 for easy support to start the application locally (This can be easily migrated to NoSQL for enhanced scalability), Docker - to provide cloud native support and easy deployment on any managed k8s cluster, slf4j profile based logging for enhanced tracebility and debugging.

parking-management-system's People

Contributors

pranav3105 avatar pranavk3105 avatar

Watchers

 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.