Starting project
This commit is contained in:
commit
515e9d94d4
16
README.md
Normal file
16
README.md
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
# Ticket System
|
||||||
|
|
||||||
|
An application to handle the ticketing of an event for a small organization.
|
||||||
|
|
||||||
|
## Tech Stack
|
||||||
|
|
||||||
|
* [ASP.Net](https://dotnet.microsoft.com/en-us/apps/aspnet)
|
||||||
|
* [QRCoder](https://github.com/codebude/QRCoder)
|
||||||
|
* [Angular](https://angular.dev)
|
||||||
|
* [Tachyons](https://tachyons.io)
|
||||||
|
* [zxing](https://www.npmjs.com/package/@zxing/ngx-scanner)
|
||||||
|
* [SQLite](https://www.sqlite.org/index.html)
|
||||||
|
|
||||||
|
## Design
|
||||||
|
|
||||||
|
All charts are made with [mermaid](https://mermaid.js.org/intro/).
|
||||||
BIN
assets/pso-logo.png
Normal file
BIN
assets/pso-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
39
diagrams/class-diagrams.md
Normal file
39
diagrams/class-diagrams.md
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
# Class Diagram
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
classDiagram
|
||||||
|
Ticket
|
||||||
|
Event
|
||||||
|
Patron
|
||||||
|
Address
|
||||||
|
Order
|
||||||
|
|
||||||
|
Ticket : Guid Id
|
||||||
|
Ticket : int Seats
|
||||||
|
Ticket : DateTime Date
|
||||||
|
Ticket : Patron Patron
|
||||||
|
|
||||||
|
Event : Guid Id
|
||||||
|
Event : String Title
|
||||||
|
Event : String Description
|
||||||
|
Event : DateTime Date
|
||||||
|
Event : Array Tickets
|
||||||
|
|
||||||
|
Patron : Guid Id
|
||||||
|
Patron : String EmailAddress
|
||||||
|
Patron : String PhoneNumber
|
||||||
|
Patron : Address Address
|
||||||
|
|
||||||
|
Address : Guid Id
|
||||||
|
Address : String StreetAddressOne
|
||||||
|
Address : String StreetAddressTwo
|
||||||
|
Address : String City
|
||||||
|
Address : String State
|
||||||
|
Address : String ZipCode
|
||||||
|
|
||||||
|
Order : Guid Id
|
||||||
|
Order : Patron Patron
|
||||||
|
Order : Array Tickets
|
||||||
|
|
||||||
|
Event o-- Ticket : X Tickets
|
||||||
|
```
|
||||||
12
diagrams/order-lookup.md
Normal file
12
diagrams/order-lookup.md
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Order Lookup
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant UI
|
||||||
|
participant API
|
||||||
|
participant DB
|
||||||
|
UI->>API: Order Id
|
||||||
|
API->>DB: Order Id
|
||||||
|
DB->>API: Order Returned
|
||||||
|
API->>UI: Order Details Returned
|
||||||
|
```
|
||||||
14
diagrams/ticket-minting.md
Normal file
14
diagrams/ticket-minting.md
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Ticket Minting
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant UI
|
||||||
|
participant API
|
||||||
|
participant DB
|
||||||
|
UI->>API: Mint Ticket(s) Request
|
||||||
|
API->>DB: Get Ticket Ids
|
||||||
|
DB->>DB: IDs Assigned
|
||||||
|
DB->>API: IDs Returned
|
||||||
|
API->>API: QR Codes Generated
|
||||||
|
API->>UI: Code Returned, Email Sent
|
||||||
|
```
|
||||||
29
diagrams/ticket-verification.md
Normal file
29
diagrams/ticket-verification.md
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# Ticket Verification
|
||||||
|
|
||||||
|
## Happy Path
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant UI
|
||||||
|
participant API
|
||||||
|
participant DB
|
||||||
|
|
||||||
|
UI ->> API: Decoded Ticket Id from QR Code
|
||||||
|
API ->> DB: Query DB with Id
|
||||||
|
DB ->> API: Found Ticket Info
|
||||||
|
API ->> UI: Tickets Found, Admit X Seats
|
||||||
|
```
|
||||||
|
|
||||||
|
## Negative Path
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant UI
|
||||||
|
participant API
|
||||||
|
participant DB
|
||||||
|
|
||||||
|
UI ->> API: Decoded Ticket Id from QR Code
|
||||||
|
API ->> DB: Query DB with Id
|
||||||
|
DB ->> API: None Found
|
||||||
|
API ->> UI: Ticket Not Found
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue
Block a user