Git Product home page Git Product logo

super-api's Introduction

super-api

API en Node.js protegida con JWT y gestión de usuarios, roles, permisos y envíos de email.

Requerimientos:

  • SQLite3
  • Postman

Nota: Puedes cambiar la contraseña desde el endpoint localhost:3001/users/:id

Para instalar las dependencias y poder ejecutar el proyecto

npm install

Para ejecutar el proyecto en modo desarrollo

npm run dev

Para compilar el proyecto para producción

npm run build

Visión general

Esto describe los recursos que conforman la API

Usuarios por defecto

ID Nombre de usuario Contraseña
1 admin password
2 user password

Autenticación

curl -d '{"username":"admin", "password":"password"}' -H "Content-Type: application/json" -X POST http://localhost:3001/login
{
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTQxODg4NDA3LCJleHAiOjE1NDE5NzQ4MDd9.yPH8VVDOl1KuSa62av_7X4-xcKnf01iNR5EwukrNAmY",
    "token_type": "Bearer"
}

Screenshots

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4

Screenshot 5

Screenshot 6

super-api's People

Contributors

devlegacy avatar edgarjaviertec avatar

Watchers

 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.