Skip to content

An API created to manage tasks, notes and users in the PomoRoutine app, using S.O.L.I.D

Notifications You must be signed in to change notification settings

tm4Bit/API_Focus

Repository files navigation

Focus_API

API RESTfull that manage authentication and data persistence on Focus application

PrerequisitesGoalstechnologiesAuthor

Focus API 🚀 in progress!

Prerequisites

Before starting, you will need to have the following tools installed on your machine: Git and Node. Besides, it's good to have an editor to work with the code like VSCode

🎯 Goals

  • To build this API I used the S.O.L.I.D principles and clean code.
  • All the authentication is made with JWT and refresh-token strategy. First I made an authentication endpoint that receives the email and password in the request and respond with user's information, an access token and a refresh-token, but the refresh-token is sent in a httpOnly cookie for more security. In all the requests a middleware intercepts and verify the access token and after a successful verification the request go on. When the refresh-token expires there's an endpoint "/refresh-token" that send back a new access token.
  • To manage and persist Tasks creation, modification in status, modification in content, deletion and listing I used PostgreSQL and TypeORM

🛠 technologies

The following tools were used in building the project:

Author


Tiago Araujo
🚀

Made by Tiago Araujo 👋🏽 contact!

Linkedin Badge Gmail Badge

About

An API created to manage tasks, notes and users in the PomoRoutine app, using S.O.L.I.D

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages