Skip to content

API development with Loopback 4, MySql with jwt authentication, roles and permissions

License

Notifications You must be signed in to change notification settings

reddimohan/loopback4-authentication-jwt-roles

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Loopback 4 JWT Authentication with Roles

Loopback 4 Boilerplate code for quick implimentation of Authentication and Roles based on JWT.

View Demo · Report Bug

Table of Contents

About The Project

https://reddimohan.github.io

API Docs

https://reddimohan.github.io

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • node.js, npm
npm install npm@latest -g

Installation

  1. Clone the repo
git clone https://github.com/reddimohan/loopback4-authentication-jwt-roles.git
  1. Install NPM packages
npm install
  1. Create a database (MySQL)
  2. Update database details in src/datasources/mysql.datasource.config.json file
{
  "name": "mysql",
  "connector": "mysql",
  "url": "",
  "host": "localhost",
  "port": 3306,
  "user": "<username>",
  "password": "<password>",
  "database": "<db_name>"
}
  1. Migrade database schema
npm run build
num run migrate
  1. Start the application
npm start
  1. Install Loopback 4 CLI - This will be useful when you want to start developing on top this repo
npm install -g @loopback/cli

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Mohan - LinkedIn - Twitter

Project Link: https://github.com/reddimohan/loopback4-authentication-jwt-roles

About

API development with Loopback 4, MySql with jwt authentication, roles and permissions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published