Skip to content

monkeyK1n9/TodoAppMinimalAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal API Todo App

This is a simple Todo application built using ASP.NET Core Minimal API with SQLite as the database. The project uses Entity Framework Core (EF Core) as the ORM for data management.

Features

  • Add, update, delete, and retrieve todos
  • Uses SQLite for database
  • Minimal API for a lightweight and efficient web application
  • Entity Framework Core as the ORM

Requirements

  • .NET (>=8.0 SDK)
  • SQLite

Getting Started

Clone the Repository

git clone https://github.com/monkeyK1n9/TodoAppMinimalAPI
cd TodoAppMinimalAPI

Setup Database

Open the project folder in your terminal. Run the following commands to apply migrations and update the database:

dotnet ef database update

Run the Application

To run the application locally:

dotnet run

The app will start on http://localhost:5179.

API Endpoints

  • GET /todos - Get all todos
  • GET /todos/{id} - Get a specific todo by ID
  • POST /todos - Create a new todo
  • PUT /todos/{id} - Update a todo
  • DELETE /todos/{id} - Delete a todo Example Todo Model
{
  "id": 1,
  "title": "Buy groceries",
  "isComplete": false
}

Contributing

Contributions are welcome! Please fork this repository and submit pull requests with improvements or bug fixes. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This is a sample project of the use of ASP.NET Core minimal API to create a TODO app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •