Skip to content

rafvo/to-do-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

To-Do App

Fullstack task list application with a REST API in NestJS and a Next.js interface.

Stack

Backend

  • NestJS — Node.js framework in TypeScript
  • Prisma — ORM with automatic typing
  • SQLite — local database (PostgreSQL in production)
  • Zod + nestjs-zod — DTO validation

Frontend

Features

  • Create, edit, and delete tasks
  • Mark tasks as completed / pending
  • Filter by status (all, pending, completed)
  • Dark/light theme with persistence
  • Responsive layout

Structure

to-do-project/
├── backend/    # NestJS API
└── frontend/   # Next.js App

Local Setup

Backend

cd backend
cp .env.example .env
npm install
npx prisma migrate dev
npm run start:dev

Frontend

cd frontend
cp .env.example .env.local
npm install
npm run dev

Environment Variables

backend/.env

DATABASE_URL="file:./dev.db"
PORT=3001
ALLOWED_ORIGIN=http://localhost:3000

frontend/.env.local

NEXT_PUBLIC_API_URL=http://localhost:3001

API

Base URL: http://localhost:3001

Method Route Description
GET /tasks List tasks
GET /tasks/:id Get task by id
POST /tasks Create task
PATCH /tasks/:id Update task
DELETE /tasks/:id Delete task

GET /tasks accepts query param completed=true or completed=false to filter.

Deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors