Giter VIP home page Giter VIP logo

api_focus's Introduction

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

api_focus's People

Contributors

tm4bit avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.