Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abualiyousef/todolist-mvc-.net

A simple To-Do List web application with CRUD operations built using .NET Core and ASP.NET 8
https://github.com/abualiyousef/todolist-mvc-.net

asp-net-core crud csharp entity-framework-core mvc-pattern sql

Last synced: about 1 month ago
JSON representation

A simple To-Do List web application with CRUD operations built using .NET Core and ASP.NET 8

Awesome Lists containing this project

README

        

To-Do List Web Application


This project is a simple CRUD application for a To-Do List using the MVC pattern in C# .Net core.


Table of Contents



Prerequisites


Before you begin, ensure you have met the following requirements:



  • Visual Studio or a compatible code editor.

  • .NET Core SDK installed on your machine.

  • A relational database (SQL Server, SQLite, etc.) for data storage.


Getting Started


To get this project up and running, follow these steps:



  1. Clone the repository: git clone <repository_url>

  2. Open the project in Visual Studio or your preferred code editor.

  3. Configure your database connection string in the appsettings.json file.

  4. Create the database using Entity Framework Core migrations. Run the following commands:




dotnet ef migrations add InitialCreate
dotnet ef database update



  1. Run the application.

  2. Start using the ToDo application.


Features




  • View ToDo List: Users can view a list of existing ToDo items.


  • Create ToDo Items: Users can create new ToDo items.


  • View Details: Users can view details of a specific ToDo item.


  • Edit ToDo Items: Users can edit existing ToDo items.


  • Delete ToDo Items: Users can delete ToDo items after confirmation.


Usage


This section provides a brief overview of the functionality of the ToDo web application:




  • View ToDo List (Index): When you open the application, you'll see a list of existing ToDo items. You can click on an item to view its details, edit, or delete it.


  • Create New ToDo Item (Create): Click on the "Create New" button to open a form for creating a new ToDo item. Fill out the details and click "Save" to create it.


  • View Details (Details): Click on a ToDo item in the list to view its details.


  • Edit ToDo Item (Edit): Click on the "Edit" button when viewing the details of a ToDo item to make changes to it. Save your changes by clicking "Save."


  • Delete ToDo Item (Delete): Click on the "Delete" button when viewing the details of a ToDo item. You'll be asked for confirmation before deleting the item.



Contributing


If you would like to contribute to this project, please follow these steps:



  1. Fork the repository.

  2. Create a new branch for your feature or bug fix.

  3. Make your changes and commit them.

  4. Push your changes to your fork.

  5. Create a pull request to the original repository.