2.0.1 • Published 6 years ago

signup-login-module v2.0.1

Weekly downloads
24
License
ISC
Repository
github
Last release
6 years ago

Signup Login Module

The signup-login module is a Node.js based loopback script and it provides a fastest way to create user signup and login services with authentication.

Pre-requisites

Node.js , and the platform-specific tools needed to compile native NPM modules (which you may already have):

Installation

To install the signup-login module, simply run the following command within your app's directory:

npm i  signup-login-module --save

Development

var loopback = require("signup-login-module");

Port Configuration:

var port = new loopback.port(port address);

Example:

var port = new loopback.port(8080);

Database Configuration:

var dbConfig = {"name":"","options":{
	
	"host": "",
    "port": ,
    "url": "",
    "database": "",
    "password": "",
    "user": "",
    "connector": "" // connector name ex. mongodb or mysql
}};

var database = new loopback.datasource(dbConfig);
Note: No need to declare email, username and password in schema but you need to add required field for username if you want it as required field.

Example Model Configuration:

var modelConfig = {

   "name": "driver",
   "properties": {
   
    "firstname": {
      "type": "string"
    },
    "lastname": {
      "type": "string"
    },
    "username": {
      "type": "string",
      "required": true
    },
   
    "phone": {
      "type": "number"
    }
  }
};	
 var model = new loopback.model(modelConfig); 

Include following code in your index file:

 var appStart = loopback.app;
 appStart.start();

Run following in your terminal to start the APP:

 npm start

Verify the deployment by navigating to your server address in your preferred browser.

http://host:port/explorer

Example:

http://localhost:8001/explorer

#Licence MIT

2.0.1

6 years ago

2.0.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago