This is a simple Blazor Server application for managing a To-Do List.
It uses C#, Entity Framework Core, and SQLite for persistence.
Ensure you have the following installed:
- .NET 8 SDK → Download Here
- SQLite (Optional - can be embedded) → Download Here
git clone https://github.com/Choene/ToDoApp.git
cd ToDoApp
Restore .NET dependencies:
dotnet restore
Run the following command to create and apply the database schema:
dotnet ef database update
Note: The SQLite database will be created inside the
/Data/
folder.
Start the Blazor Server app:
dotnet run
Once the app starts, open:
https://localhost:7219/todo
(Or http://localhost:PORT/todo
based on the console output)
By default, the SQLite database is stored in:
Data/todo.db
To change this, modify ``:
"ConnectionStrings": {
"DefaultConnection": "Data Source=NewDatabasePath/todo.db"
}
Then run migrations again:
dotnet ef database update
Issue | Solution |
---|---|
❌ dotnet: command not found |
Install .NET SDK and restart your terminal. |
❌ Database not created | Run dotnet ef database update to initialize the SQLite DB. |
Developed by Choene Chokoe
🔗 GitHub: Profile