Skip to content

Gozde03/task-tracker-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Tracker API

A RESTful Task Tracker API built with Node.js, Express, MongoDB, and JWT authentication.

Features

  • User registration
  • User login
  • JWT-based authentication
  • Create task
  • Get all my tasks
  • Get single task by id
  • Update task
  • Delete task

Tech Stack

  • Node.js
  • Express.js
  • MongoDB Atlas
  • Mongoose
  • JWT
  • bcryptjs

Installation

npm install
npm run dev

Environment Variables

Create a .env file in the root directory:

PORT=5050
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key

API Endpoints

Auth

  • POST /api/auth/register
  • POST /api/auth/login

Tasks

  • GET /api/tasks
  • GET /api/tasks/:id
  • POST /api/tasks
  • PATCH /api/tasks/:id
  • DELETE /api/tasks/:id

Preview

Postman Get Tasks Screenshot

About

A RESTful Task Tracker API built with Node.js, Express, MongoDB, and JWT authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors