Skip to content

Sign Up Documentation

siddharthakonakanchi edited this page Dec 5, 2017 · 1 revision

Index

  1. Description
  2. API Calls
  3. Data Base Details
  4. User Manual
  5. Packages Used

Description

This page enables the user to sign up to GatMeetUp Page

API

This is a POST method which enables to store details into the users table.This method also searches if the user is already existing .If the user already exists it returns a message that already an user exists with a given email id Upon success the counter value is incremented which is a four digit value and inserted into the database

Endpoint

/users/signup

Method
GET  
Fields
Key Description Type Required
email Email Id of user String Yes
password User's password String Yes
Response

Status codes: 200,400,501
Example:
code: 200 OK

Tables

Table Name: users

Table structure

Key Description Type Required
name User Name String Yes
email Email ID of the user String Yes
location Current location of the user String No
hometown Hometown of the user String No
language Language preferences String Yes
birthday Date of birth of user String Yes
gender Gender of user String No
bio Short biography about the user String No
password Encrypted password String Yes

Manual

  1. Input Details of User , Date in Calender Format and Password minimum of 6 length.
  2. Click on Sign Up Button

Packages Used

Encryption Decrypion using Salt and hash functions of bcryptjs API

Installation

npm install bcryptjs

Encryption : In order to store password in database and to provide security we are using encryption and decryption algorithms so passwords remain hidden More information can be obtained from https://www.npmjs.com/package/bcryptjs

Clone this wiki locally