This project is a simple CRUD application for a To-Do List using the MVC pattern in C# .Net core.
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.
To get this project up and running, follow these steps:
- Clone the repository:
git clone <repository_url> - Open the project in Visual Studio or your preferred code editor.
- Configure your database connection string in the
appsettings.jsonfile. - Create the database using Entity Framework Core migrations. Run the following commands:
dotnet ef migrations add InitialCreate
dotnet ef database update
- Run the application.
- Start using the ToDo application.
- 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.
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.
If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Create a pull request to the original repository.