{"id":26718592,"url":"https://github.com/glenvillethedev/asp-net-core-app","last_synced_at":"2026-04-13T10:31:10.655Z","repository":{"id":284708466,"uuid":"955757388","full_name":"glenvillethedev/asp-net-core-app","owner":"glenvillethedev","description":"Expenses tracking web app using ASP.NET Core MVC","archived":false,"fork":false,"pushed_at":"2025-04-18T07:24:46.000Z","size":255,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T21:29:50.419Z","etag":null,"topics":["aspnetcore","aspnetcoremvc","bootstrap","css","dotnet","html","javascript"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glenvillethedev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-27T06:34:02.000Z","updated_at":"2025-04-02T10:43:52.000Z","dependencies_parsed_at":"2025-03-27T09:34:33.345Z","dependency_job_id":"d5a14c80-3b22-4b6c-82e0-4be576d41569","html_url":"https://github.com/glenvillethedev/asp-net-core-app","commit_stats":null,"previous_names":["glenvillethedev/asp-net-core-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/glenvillethedev/asp-net-core-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glenvillethedev%2Fasp-net-core-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glenvillethedev%2Fasp-net-core-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glenvillethedev%2Fasp-net-core-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glenvillethedev%2Fasp-net-core-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glenvillethedev","download_url":"https://codeload.github.com/glenvillethedev/asp-net-core-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glenvillethedev%2Fasp-net-core-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31748893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aspnetcore","aspnetcoremvc","bootstrap","css","dotnet","html","javascript"],"created_at":"2025-03-27T17:35:22.588Z","updated_at":"2026-04-13T10:31:10.631Z","avatar_url":"https://github.com/glenvillethedev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📃 **Expenses Tracker**\n\nA simple and user-friendly web application for managing and tracking personal expenses.\n\n### ✅ **Features:**\n\n- 📧 **User Authentication:** Secure login and registration using ASP.NET Core Identity.\n- 💰 **Expense Management:** Add, edit, and delete expenses.\n- 📊 **Reports:** Download expenses records as PDF / CSV.\n- 🔍 **Pagination \u0026 Sorting:** Easily browse and sort records.\n- 🌐 **Responsive UI:** Fully responsive design using Bootstrap 5.\n- 📄 **Logging:** Integrated Serilog for structured logging.\n\n---\n\n## ⚙️ **Tech Stack:**\n\n- **Frontend:** HTML5, CSS3, Bootstrap, Razor Pages\n- **Backend:** C#, ASP.NET Core\n- **Database:** MS SQL Server (with EntityFramework Core)\n- **Authentication:** ASP.NET Core Identity\n- **Logging:** Serilog\n- **Packages:** Rotativa (PDF download), CSVHelper (CSV download)\n- **Testing:** xUnit, Moq, AutoFixture, FluentAssertions\n- **Version Control:** Git\n- **Tools:** Visual Studio Community 2022, Visual Studio Code\n\n---\n\n## 💻 **Installation and Setup:**\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/glenvillethedev/asp-net-core-app.git\ncd ExpensesTracker\n```\n\n### 2. Install Dependencies\n\nMake sure you have the latest .NET SDK installed.\\\nInstall the necessary NuGet packages:\n\n```bash\ndotnet restore\n```\n\n(Rotativa) Download and save the wkhtmltopdf.exe under `wwwroot\\Rotativa\\`\\\nhttps://wkhtmltopdf.org/downloads.html\n\n### 3. Configure the Database\n\n- Update the `appsettings.json` file with your SQL Server connection string.\n\n```json\n\"ConnectionStrings\": {\n  \"DefaultConnection\": \"your_db_connection_string_here\"\n}\n```\n\n- Apply EF Core Migrations:\n\n```bash\ndotnet ef database update\n```\n\n### 4. Run the Application\n\n```bash\ndotnet run\n```\n\nOpen your browser and navigate to\\\n`https://localhost:5001` \n(Default) \n\n---\n\n## 💻 **Configuration:**\n\n### AppSettings\n\nConfigure connection strings, logging, and authentication settings in `appsettings.json`.\n\n### LaunchSettings\n\nConfigure launch settings (e.g. applicationUrl, environmentVariables, server) in `launchSettings.json`.\n\n### Logging\n\nSerilog configuration in `appsettings.json`:\n\n```json\n\"Serilog\": {\n  \"MinimumLevel\": \"Information\",\n  \"Using\": [\n    \"Serilog.Sinks.Console\",\n    \"Serilog.Sinks.File\"\n  ],\n  \"Enrich\": [ \"FromLogContext\" ],\n  \"WriteTo\": [\n    {\n      \"Name\": \"Console\"\n    },\n    {\n      \"Name\": \"File\",\n      \"Args\": {\n        \"path\": \"logs/general/log-.txt\",\n        \"rollingInterval\": \"Day\",\n        \"fileSizeLimitBytes\": 1048576,\n        \"rollOnFileSizeLimit\": true,\n        \"shared\": true,\n        \"outputTemplate\": \"{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message}CorrelationID: {CorrelationID}{NewLine}{Exception}\",\n        \"restrictedToMinimumLevel\": \"Information\",\n        \"restrictedToMaximumLevel\": \"Warning\"\n      }\n    },\n    {\n      \"Name\": \"File\",\n      \"Args\": {\n        \"path\": \"logs/error/err-log-.txt\",\n        \"rollingInterval\": \"Day\",\n        \"fileSizeLimitBytes\": 1048576,\n        \"rollOnFileSizeLimit\": true,\n        \"shared\": true,\n        \"outputTemplate\": \"{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message}CorrelationID: {CorrelationID}{NewLine}{Exception}\",\n        \"restrictedToMinimumLevel\": \"Error\"\n      }\n    }\n  ]\n}\n```\n\n---\n\n## 🌐 **Usage:**\n\n### 1. Register\n\n- Go to the \"SignIn\" page or click on the \"Register\" link. (/Account/Register)\n- Fill in the required details.\n- Click the \"Register\" button.\n- If success, new user will be logged in.\n\n### 2. SignIn\n\n- Go to the \"SignIn\" page or click on the \"SignIn\" Link. (/Account/SignIn)\n- Enter registered email and password.\n- If success, user will be logged in.\n\n### 3. Expenses Management\n\n[Create]\n- Click on the \"Add Entry\" button on the navigation. (/Entry/Add)\n- Fill in the required details.\n- Click on the \"Add\" button.\n- If success, New Entry should be added on the table.\n\n[Retrieve]\n- Use the search fields to filter the results. (/Entry)\n- Use the pagination to browse pages.\n- Use the pagination dropdown to select number of records per page.\n- Click on the table headers to sort the table.\n\n[Update]\n- Click on the \"Update\" button on the table. (/Entry/Update)\n- Update the fields you want to change.\n- Click on the \"Update\" button.\n- If success, Updated Entry should be reflected on the table.\n\n[Delete]\n- Click on the \"Delete\" button on the table. (/Entry/Delete)\n- Click on the \"Delete\" button to delete the entry.\n- If success, Deleted Entry should be removed on the table.\n\n---\n\n## 📂 **Folder Structure:**\n\n```\n📁 ExpensesTracker (WebApp)\n ├── 📁 Properties -\u003e contains launchSettings.json file\n ├── 📁 wwwroot → Static files (css, img, Rotativa)\n     ├── 📁 css\n     ├── 📁 img\n     ├── 📁 Rotativa\n ├── 📁 Areas → Separate MVC for Areas (e.g. Admin Area)\n     ├── 📁 Area\n         ├── 📁 Controllers\n         ├── 📁 Models\n         ├── 📁 Views\n ├── 📁 Controllers → Controller Endpoints\n ├── 📁 Extensions → Extension Methods\n     ├── 📝 StartupExtensionMethods.cs -\u003e Configure app services \u0026 middleware here\n ├── 📁 logs → Serilog file logs\n ├── 📁 Middlewares → custom middlewares here\n ├── 📁 Views → RazorPages for frontend\n ├── 📝 appsettings.json → Configuration settings\n ├── 📝 entries.json -\u003e Entry Table seed data\n ├── 🛠️ Program.cs → App Entry Point. (use StartupExtensionMethods.cs to configure services \u0026 middlewares)\n\n📁 ExpensesTracker.Models (Models/Entities/DTOs)\n ├── 📁 DTOs → Data Transfer Objects used in the App\n ├── 📁 Entities → Database Models\n ├── 📁 Enums → Enums used in the Application\n ├── 📁 IdentityEntities → Models used for ASP.NET Core Identity\n ├── 📁 Migrations → EF Core migration scripts  \n ├── 📝 ApplicationDbContext.cs → DBContext file\n\n📁 ExpensesTracker.Repositories (Repository Layer)\n ├── 📁 Interfaces\n     ├── 📝 IRepository.cs -\u003e Repository Interface\n ├── 📝 Repository.cs → Repository Implementation\n\n📁 ExpensesTracker.Services (Service Layer)\n ├── 📁 Interfaces\n     ├── 📝 IService.cs -\u003e Service Interface\n ├── 📝 Service.cs → Service Implementation\n\n📁 ExpensesTracker.Tests (Test Project)\n ├── 📝 EntryControllerTest.cs →  EntryController Unit Test File\n ├── 📝 EntryServiceTest.cs → EntryService Unit Test File\n```\n\n---\n\n## 📃 **Future Updates:**\n\n- 🎯 Email Verification\n- 🎯 Password Recovery\n- 🎯 User Settings\n- 🎯 Admin Settings\n\n---\n\n## 📌 **Contact:**\n\n- 🌐 GitHub: https://github.com/glenvillethedev\n- 📧 Email: glenville.work@gmail.com\n- 🛠️ LinkedIn: https://www.linkedin.com/in/glenville-maturan\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglenvillethedev%2Fasp-net-core-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglenvillethedev%2Fasp-net-core-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglenvillethedev%2Fasp-net-core-app/lists"}