signup-login
Node Signup and Login Module
Last updated 2 years ago by viji .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install signup-login 
SYNC missed versions from official npm registry.

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 --save

Development

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

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);

Example Model Configuration:

var modelConfig = {

   "name": "driver",
   "properties": {
    "email": {
      "type": "string",
      "required": true
    },
    "firstname": {
      "type": "string"
    },
    "lastname": {
      "type": "string"
    },
    "username": {
      "type": "string",
      "required": true
    },
    "password": {
      "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();

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

http://host:port/explorer

Example:

http://localhost:57304/explorer

#Licence MIT

Current Tags

  • 1.1.0                                ...           latest (2 years ago)

11 Versions

  • 1.1.0                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (11)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |