English | 日本語
A full-stack Todo application with a decoupled architecture: a Next.js (TypeScript) frontend communicating with an ASP.NET Core Web API, backed by a SQLite database.
- Create tasks with a title, an optional URL, and a due date
- Mark tasks as complete, rename them (double-click a title), and delete them with Undo
- Progress summary: completion ring, plus counts for completed, remaining, due today, and overdue tasks
- Filter tabs (All / Active / Completed), search, and sort by due date
- Due-date badges that highlight tasks due today and overdue tasks
- English / Japanese language switch (the
EN/JAtoggle in the header) - Light / dark theme
- Keyboard shortcuts:
Nnew task,/search,Esccancel edit - Demo mode: if the API cannot be reached, the app keeps working with sample data saved in the browser (
localStorage)
- Frontend: Next.js 13 (Pages Router), React 18, TypeScript, axios
- Backend: ASP.NET Core 7 Web API, Entity Framework Core
- Database: SQLite
.
├── backend/ ASP.NET Core Web API
│ ├── Controllers/ToDoController.cs
│ ├── Data/ToDoContext.cs
│ ├── Models/ToDoItem.cs
│ ├── Migrations/
│ └── todo.db SQLite database
├── frontend/ Next.js app (UI)
│ ├── pages/index.tsx Main page
│ ├── lib/i18n.ts English / Japanese strings
│ ├── lib/todoUtils.ts Date, URL, and storage helpers
│ └── styles/globals.css
└── docs/ Screenshots
- .NET 7 SDK
- Node.js 16.8 or later
cd backend
dotnet run --launch-profile httpThe API runs at http://localhost:5082. Swagger UI is available at http://localhost:5082/swagger.
cd frontend
npm install
npm run devOpen http://localhost:3000.
The backend allows CORS only from http://localhost:3000, so keep the frontend on that port.
Use the EN / JA toggle in the header to switch languages. Your choice is saved in the browser.
You can also open a specific language with a query parameter, for example http://localhost:3000/?lang=ja.
| Method | Path | Description |
|---|---|---|
| GET | /api/todo |
List all tasks |
| GET | /api/todo/{id} |
Get a single task |
| POST | /api/todo |
Create a task |
| PUT | /api/todo/{id} |
Update a task |
| DELETE | /api/todo/{id} |
Delete a task |
Example task:
{
"id": 1,
"title": "Write the README setup steps",
"url": "https://example.com",
"dueDate": "2026-11-18T00:00:00",
"isComplete": false
}