Coder Social home page Coder Social logo

aqibaltaf / node-user-login-signup-profile-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 4.02 MB

A safe Node Js API for managing login, registration, and logout operations. For authentication, this API makes use of Express Js, MongoDB, and JWT (json web token).

JavaScript 100.00%
nodejs monogodb expressjs jwt-authentication mongoose webdev api bcrypt postman-example schema modules

node-user-login-signup-profile-api's Introduction

API

A secure Node Js API to manage login, signup and logout operations.
This API uses Express Js , Mongo and JWT (json web token) for Authentication.

How To USE

Modules Requirement?

Open Terminal (cmd)
cd YourProjectFolderName

Then install all of these modules one by one:

npm install node
npm install express
npm install bcrypt
npm install body-parser
npm intsall mongoose
npm install jsonwebtoken
npm i install dotenv

Database Requirement?

Now, Search Mongo Atlas on Google and create an account.
Once you are logged in there follow these steps:
1. Go to Database access and set up your Database username and password.
2. Go to Network access and type 0.0.0.0/0 or Allow access from anywhere and click confirm.
3. Go to Database under Depolyment tab, Click connect --> Connect your application ---> copy the Address.

1

  4. Go to app.js in your project folder, and paste this link in mongoose.connect('');

image

*make sure to replace the '<password>' with your Database password.

Other Requirments

 
1. Create a .env file, and write your Secret Key as ACCESS_TOKEN = write any thing you want
for eg:
      1. Create .env file
      2. Type ACESS_TOKEN = This is a dummy text
      3. Save .env

2. Type node server.js on your terminal to run this API.
3. Install Postman to send and get request from the Database.

Contact

For Any Query or help feel free to contact me at [email protected]
And if you liked this API, Make sure to give it a star

node-user-login-signup-profile-api's People

Contributors

aqibaltaf avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.