Skip to content

Simple login and registration using Mongo, Express, and Node

Notifications You must be signed in to change notification settings

NatC02/loginRegistrationNode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation



Logo Logo Logo Logo

Localhost login and registration

A localhost Node login project using Express, Passport, Handlebars, and Mongoose

Table of Contents
  1. About The Project
  2. Getting Started
  3. Acknowledgments

About The Project

Registration and Login

I wanted to know how login authentication works with a backend.

  • Passport for authentication
  • bcrypt for encryption
  • MongoDB schema with Mongoose
  • API testing with Postman
  • Handlebars for views

(back to top)

Usage

project-demo-postman

project-demo

Built with

(back to top)

Getting Started

To get a local copy up and running follow these simple steps.

Installation

  1. Get a free API Key from MongoDB from Here

  2. Clone the repo

    git clone https://github.com/NatC02/loginRegistrationNode
  3. Install NPM packages

    npm install
  4. Enter your API in config/keys.js

    dbPassword =
      "mongodb+srv://YOUR_USERNAME_HERE:" +
      encodeURIComponent("YOUR_PASSWORD_HERE") +
      "@CLUSTER_NAME_HERE.mongodb.net/YOUR_DATABASE_NAME_HERE?retryWrites=true";
    
    module.exports = {
      mongoURI: dbPassword,
    };
    const API_KEY = "ENTER YOUR API";

(back to top)

Acknowledgments

List of resources I found helpful and want to give credit to. I was looking to learn to further cement my knowledge of backend fundamentals.

(back to top)

About

Simple login and registration using Mongo, Express, and Node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published