Wallet API is a backend application developed using ASP.NET Core, .NET 7, and EF Core 7. It enables users to manage wallet transactions and includes a system for calculating daily bonus points.
- Daily Bonus Points: Automatic calculation of bonus points based on predefined rules.
- Transaction Management: Create, retrieve, and manage wallet transactions.
- Database Integration: Robust support with PostgreSQL 17 using Entity Framework Core.
Ensure you have the following installed:
- .NET 7 SDK
- PostgreSQL 17
- Clone the Repository
git clone <repository-url> cd wallet-api
- Install Dependencies
dotnet restore
- Configure Database
Update the PostgreSQL connection string in
appsettings.json"ConnectionStrings": { "DefaultConnection": "Server=yourHost;Port=5432;Database=YourDBName;User Id=yourUserId;Password=YourPassword;" }
- Apply Database Migrations
Run migrations to set up the database schema:
dotnet ef database update
- Run the Application
Start the API server:
dotnet run
The API is documented with Swagger. After running the application, you can access the Swagger UI at:
http://localhost:<port>/swaggerIt provides detailed information about the endpoints, request/response models, and example usage.
- ASP.NET Core: For building the API.
- EF Core 7: ORM for database interactions.
- PostgreSQL 17: Database for storing transactions and bonus point data.
- Swagger: For interactive API documentation.