https://github.com/gpproton/parking-space
A sample parking lot management platform
https://github.com/gpproton/parking-space
Last synced: 3 months ago
JSON representation
A sample parking lot management platform
- Host: GitHub
- URL: https://github.com/gpproton/parking-space
- Owner: gpproton
- License: mit
- Created: 2023-04-16T21:03:45.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-03T09:22:03.000Z (about 1 year ago)
- Last Synced: 2025-02-17T08:02:45.240Z (3 months ago)
- Language: C#
- Size: 636 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Parking Space
A sample project to showcase using dotnet 6.0 web API project with common software development priciples
such as SOLID, YAGNI, KISS etc, and basic understanding of angular framework.## Features on project
* Swagger docs (prod: /api-docs, development: /swagger)
* Xunit tests ticket prices
* Asp.net Core SPA Proxy from angular
* Basic Angular sample (Space, Price)
* API Response status
* Additional backend development best pratices (services, repository, entity configuration)## Requirements
* dotnet: 6.0.300
* nodejs: V14
* npm: v6## Tests
Tickets test are located at the [ParkingSpace.Tests.ProblemSolutions] namespace.
```
Service
├── Api
│ ├── SpaceApiTests.cs
│ └── SpotApiTests.cs
├── PriceResolverTests.cs
├── ProblemSolutions
│ ├── No0SmallMotorCycleScooterParkingLot.cs
│ ├── No1MallParkingLot.cs
│ ├── No2StadiumParkingLot.cs
│ └── No3AirportParkingLot.cs
├── Services
│ ├── GenericRepositoryTests.cs
│ └── SpaceServiceTests.cs
```### Sample ticket test are:
```
Parking Ticket:
==============
Vehicle: motorcycle-00
Ticket Number: 3069D38C
Spot Number: 1
Entry Date-time: 4/25/2023 12:33:24PM +01:00
Exit Date-time: 4/25/2023 1:28:24PM +01:00
Fee: 0Parking Ticket:
==============
Vehicle: motorcycle-01
Ticket Number: 2B350EA4
Spot Number: 1
Entry Date-time: 4/24/2023 10:29:24PM +01:00
Exit Date-time: 4/25/2023 1:28:24PM +01:00
Fee: 60Parking Ticket:
==============
Vehicle: motorcycle-02
Ticket Number: 2E4E0BC5
Spot Number: 1
Entry Date-time: 4/24/2023 1:28:24AM +01:00
Exit Date-time: 4/25/2023 1:28:24PM +01:00
Fee: 160
```## Backend Entities

## Sample Angular API Usage
