AfRApay/AfRApay.Web/README.md

14 lines
1 KiB
Markdown
Raw Normal View History

# AfRApay.MateCard
This is the software that runs on the MateCard terminal, powered by an ESP32.
## Setting up dev environment
This project uses PlatformIO. Quick setup guide:
2023-02-16 19:25:02 +01:00
- Install dotnet-sdk (macOS: `brew bundle` in project root OR `brew install dotnet-sdk` / Arch Linux: `pacman -S dotnet-host dotnet-runtime dotnet-sdk dotnet-targeting-pack aspnet-runtime aspnet-targeting-pack`)
2023-02-13 18:17:38 +01:00
- Install the EF.Core tool for database management: `dotnet tool install --global dotnet-ef`
- To start the webserver, execute `dotnet run` in this directory. If the database does not exist, it will be created. Migrations are applied automatically.
- Swagger / OpenAPI docs will automatically generate at `/swagger`.
- To test with the MateCard ESP32 code, get your computer's IP and configure the ESP to use `http://<yourip>:5296` as the API base url.
2023-02-13 18:17:38 +01:00
## Creating migrations
- To create a migration, change the respective code in `Backend/Database/Tables/TableName.cs` and then run `dotnet ef migrations add DescriptiveNameOfChanges`. The migration will be generated automatically.