To run projects publish then user fit docker images
or Debug by visutal studio
- Install VS Code /Visual Studio 17.x later
- Ensure installed .Net 8.0 sdk.
- Install RabbitMQ.
- Ensure installed SqlServer.
- Edit appsetsings as your environment(connection string, urls...).
- Build Solution (MassTransit, Meteors, Microsoft, EFCore) have to installed.
- Cong Startup projects
BalaceApi
/TopupApi
. - Update-Database -Context BalanceDbContext
- Update Database -Context TopupDbContext
- run projects.
- Balance Api isnot protected (quick to dev).
- Topup seed check
src\Infrastructure\Databases\Topup.Infrastructure.Databases.SqlServer\Main\Seed
- usernmae:huzaifa, passsword:huzaifa, userNO:012345 / username:test, password:test, userNO:543210
All Apis work Concurrency
--run 100 vertual user instert 20~100 same time
select SUM(Amount) from Transactions where Status = 2 or Status = 3
--= CurrentBalance = SUM(Amount) end of test sure
select CurrentBalance,AvailableBalance from Users
read comments inside project