1.0.6 • Published 1 year ago

backenddevelopmentbyvitalya v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Backend Package

Backend Package is a Node.js module that provides middleware for handling basic authentication and authorization in Express.js applications.

Installation

To install Backend Package, run the following command:

npm install backend-package

Usage

const BackendPackage = require('backend-package');

// Create an instance of BackendPackage
const backend = new BackendPackage();

// Start the server on port 3000
backend.startServer(3000);

Features

  • Authentication Middleware: Middleware for authenticating users based on provided credentials.
  • Authorization Middleware: Middleware for authorizing access to protected routes based on user roles.
  • User Management: Basic user management with predefined users for demonstration.

Example

const BackendPackage = require('backend-package');

// Create an instance of BackendPackage
const backend = new BackendPackage();

// Start the server on port 3000
backend.startServer(3000);

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.0.6

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago