This is a C# + POSTGRESQL built terminal todo app
TermTodo/
├── TermTodo.csproj # Project file — like package.json
├── Program.cs # Entry point + CLI loop
├── Todo.cs # Model / data class
├── TodoRepo.cs # All DB operations (CRUD)
└── Database.cs # Connection + migration
| Tool | Version | Notes |
|---|---|---|
| .NET SDK | 8.0+ | Dotnet |
| PostgreSQL | 14+ | Local or hosted |
Check installed versions:
dotnet --version
psql --versiongit clone https://github.com/Katleho-codes/Term-todo TermTodo
cd TermTodo/TermTodoRestore packages and run
dotnet restore
dotnet runTo run this project, you will need to add the following environment variables to your .env file
DB_HOST
DB_PORT
DB_USER
DB_PASS
DB_NAME
CREATE DATABASE c#todoapp;Install the package:
dotnet add package DotNetEnv
dotnet add package Npgsql