AfRApay/AfRApay.Web
2023-05-22 14:21:46 +02:00
..
Backend Enable swagger in production 2023-05-19 23:38:38 +02:00
Controllers Add magic card identifier '@username' for transaction and balance api calls 2023-05-19 23:50:49 +02:00
Pages Fix button layout on edit user page 2023-05-22 14:21:46 +02:00
Properties Add swagger, start work on user api controller 2023-02-07 23:02:10 +01:00
wwwroot Minor layout tweaks, comments, css cleanup 2023-05-21 00:25:54 +02:00
AfRApay.Web.csproj Migrate to EF.Core 2023-02-13 19:29:59 +01:00
appsettings.Development.json A new start 2023-02-06 02:37:36 +01:00
appsettings.json A new start 2023-02-06 02:37:36 +01:00
deploy.sh Backup database before deployment 2023-05-19 22:43:11 +02:00
README.md Add Brewfile 2023-02-16 19:25:02 +01:00

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:

  • 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)
  • 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.

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.