Skip to content

EvgPov/task-manager-fastify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Manager (Fastify)

Educational project. Full-stack web application for task management with authentication.

Technologies

  • Fastify + TypeScript
  • PostgreSQL (raw SQL via pg)
  • JWT (@fastify/jwt) stored in cookies
  • bcrypt for password hashing
  • Pug template engine (SSR)

Features

  • User registration with validation
  • Login with JWT authentication
  • Create, update and delete tasks
  • Each user sees only their own tasks
  • Server-side rendering via Pug templates

Architecture

  • Raw SQL queries via pg connection pool (no ORM)
  • Repository pattern for data access
  • preHandler middleware for route protection
  • Custom error handler with user-friendly messages

Getting Started

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Create .env file based on .env.example:
DATABASE_URL=postgresql://user:password@localhost:5432/dbname
JWT_SECRET=your_secret_key
  1. Start the project:
npm run dev

Related

About

Веб-приложение для управления задачами с системой регистрации, авторизации и JWT. Полный CRUD на Fastify + PostgreSQL.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors