Skip to content

EvgPov/task-manager-api

Repository files navigation

Task Manager API

Educational project. REST API for task management with JWT authorization.

Technologies

  • NestJS
  • Prisma ORM
  • PostgreSQL
  • JWT (jose)
  • argon2

Features

  • User registration and authentication
  • CRUD operations for tasks
  • Task filtering by status
  • Pagination
  • Each user can only see their own tasks

Getting Started

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Create .env file based on .env.example and fill in the variables
  2. Apply migrations:
npx prisma migrate dev
  1. Start the project:
npm run start:dev

Endpoints

Auth

  • POST /auth/login — login

Users

  • POST /users/register — registration

Tasks (require authorization)

  • GET /tasks — get all tasks (filters: done, page, limit)
  • GET /tasks/:id — get task by id
  • POST /tasks — create task
  • PATCH /tasks/:id — update task
  • DELETE /tasks/:id — delete task

Related

Frontend client: task-manager-client

About

Educational project. REST API for task management built with NestJS, Prisma and PostgreSQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors