Skip to content

A complete authentication system with Node, Express and Mongodb.

Notifications You must be signed in to change notification settings

tanishqaarora/Nodejs-Authentication

Repository files navigation

nodejs-authentication

A complete authentication system which can be used as a starter code for creating any new application.

auth

Requirements

Technologies Used

  1. NodeJS
  2. Express
  3. EJS
  4. MongoDB
  5. Mongoose
  6. PassportJS

Getting Started

  • Clone the repository
git clone 
  • Into the project directory
cd nodejs-authentication
  • Install dependencies
npm install
  • Add all the constants' values used in this app in a file named '.env' and place that file in root folder

  • Build and run the project

npm start
  • Navigate to http://localhost:8000/

Folder Structure

nodejs-auth
├── assets
│ --- ├── css
│ -------- ├── layout.css
├── config
│ --- ├── middleware.js
│ --- ├── mongoose.js
│ --- ├── passport-google-oauth2-strategy.js
│ --- ├── passport-local-strategy.js
├── controllers
│ --- ├── home.js
│ --- ├── user.js
├── models
│ --- ├── user.js
├── routes
│ --- ├── index.js
│ --- ├── home.js
├── views
│ --- ├── partials
│ -------- ├── messages.ejs
│ --- ├── dashboard.ejs
│ --- ├── home.ejs
│ --- ├── layout.ejs
│ --- ├── login.ejs
│ --- ├── register.ejs
├── .gitignore
├── index.js
├── package-lock.json
├── package.json
├── README.md


Enjoy Learning!!!