Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 668 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 668 Bytes

Tickets booking API

A simple CRUD API for booking tickets.

API is written on

  • ASP.Net core web API
  • PostgreSQL

Also, I used DB first design.

Database schema

DB schema image

Run project

  1. Create appsettings.json file
  "Logging": {...},
  "AllowedHosts": "...",
  "ConnectionStrings": {
    "TicketsDatabase": "postgreSQL connection string"
  }
}
  1. Install dotnet ef tool dotnet tool install --global dotnet-ef
  2. Apply migrations to the database dotnet ef database update
  3. Run project dotnet run urls="https://localhost:8000"

You can open Swagger UI at https://localhost:8000/swagger