{"id":28873300,"url":"https://github.com/dmunasingha/razor-crud-app","last_synced_at":"2026-05-07T01:37:47.898Z","repository":{"id":299681711,"uuid":"1003832272","full_name":"dmunasingha/Razor-CRUD-App","owner":"dmunasingha","description":"RazorCrudApp is a simple CRUD (Create, Read, Update, Delete) web application built using ASP.NET Core Razor Pages and SQLite. It demonstrates fundamental features like user authentication, secure login/logout with cookies, form validation, and Bootstrap-powered UI for responsiveness. The app is ideal for learning the basics of .NET","archived":false,"fork":false,"pushed_at":"2025-06-17T19:09:23.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-17T19:56:08.038Z","etag":null,"topics":["asp-net-core","bootstrap5","crud","csharp","css","html","learn","razor-pages","web","webapp"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/dmunasingha.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,"zenodo":null}},"created_at":"2025-06-17T18:26:51.000Z","updated_at":"2025-06-17T19:09:26.000Z","dependencies_parsed_at":"2025-06-17T19:56:33.499Z","dependency_job_id":"6b3a3267-ef0f-4081-818c-309e1a569a26","html_url":"https://github.com/dmunasingha/Razor-CRUD-App","commit_stats":null,"previous_names":["dmunasingha/razor-crud-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmunasingha/Razor-CRUD-App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmunasingha%2FRazor-CRUD-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmunasingha%2FRazor-CRUD-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmunasingha%2FRazor-CRUD-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmunasingha%2FRazor-CRUD-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmunasingha","download_url":"https://codeload.github.com/dmunasingha/Razor-CRUD-App/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmunasingha%2FRazor-CRUD-App/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260968290,"owners_count":23090121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["asp-net-core","bootstrap5","crud","csharp","css","html","learn","razor-pages","web","webapp"],"created_at":"2025-06-20T15:16:41.536Z","updated_at":"2026-05-07T01:37:47.892Z","avatar_url":"https://github.com/dmunasingha.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RazorCrudApp\n\nA simple CRUD web application built with ASP.NET Core Razor Pages, featuring:\n\n* User Authentication (Login / Logout)\n* SQLite Database Integration\n* Toast Notifications using Bootstrap\n* Entity Framework Core (EF Core) with Code-First Migrations\n\n---\n\n## 🚀 Features\n\n* 🧑‍💼 User Authentication with Cookie-based login/logout\n* 📦 SQLite database\n* 📝 CRUD operations on User Model (or any other data model)\n* 💬 Bootstrap Toast Notifications\n* 📄 Razor Pages + Layout + Partial Integration\n\n---\n\n## 🛠️ Setup Instructions\n\n### Prerequisites\n\n* [.NET 6 or later SDK](https://dotnet.microsoft.com/en-us/download)\n* (Optional) Visual Studio 2022+ / VS Code\n* SQLite Explorer (like DB Browser for SQLite)\n\n---\n\n### ⚙️ Getting Started\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone https://github.com/yourusername/RazorCrudApp.git\n   cd RazorCrudApp\n   ```\n\n2. **Restore Dependencies**\n\n   ```bash\n   dotnet restore\n   ```\n\n3. **Add EF Core Tools (if not already installed)**\n\n   ```bash\n   dotnet tool install --global dotnet-ef\n   ```\n\n4. **Apply Migrations and Create the Database**\n\n   ```bash\n   dotnet ef migrations add InitialCreate\n   dotnet ef database update\n   ```\n\n5. **Run the Application**\n\n   ```bash\n   dotnet run\n   ```\n\n---\n\n## 🥪 Usage\n\n* Visit: `https://localhost:5001`\n* Use the Login form to authenticate.\n* Use navigation bar to perform CRUD actions.\n* Use Toasts for visual feedback on actions.\n\n---\n\n## 🧹 Folder Structure\n\n```\n/Pages\n  /Auth          # Login, Logout pages\n  /Users         # CRUD pages for users\n/Models\n  User.cs        # User model\n/Data\n  AppDbContext.cs\n```\n\n---\n\n## 📦 Dependencies\n\n* ASP.NET Core Razor Pages\n* Microsoft.EntityFrameworkCore.Sqlite\n* Microsoft.AspNetCore.Authentication.Cookies\n* Bootstrap 5\n* jQuery\n\n---\n\n## 🫯 Troubleshooting\n\n### Issue: `no such table: Users`\n\nRun migrations and update database:\n\n```bash\ndotnet ef migrations add InitialCreate\ndotnet ef database update\n```\n\n### Issue: `The file is being used by another process`\n\nClose the app or watcher, then run:\n\n```bash\ntaskkill /f /im RazorCrudApp.exe\ndotnet clean\ndotnet build\n```\n\n---\n\n## 📖 License\n\nMIT License. Feel free to use and contribute!\n\n---\n\n## 🤝 Contributing\n\nPull requests are welcome. For major changes, open an issue first to discuss what you'd like to change.\n\n---\n\n## ✍️ Author\n\n**Dunith Munasingha**\nSri Lanka\nSoftware Engineer\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmunasingha%2Frazor-crud-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmunasingha%2Frazor-crud-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmunasingha%2Frazor-crud-app/lists"}