kmranrg / LoginApp

with Express & Node JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LoginApp

with Express & Node JS

Screenshot

image

How to Execute the project?

npm start

PART 01:

Setting up the server with Express JS

Commands/Steps Used in PART ONE:

  • create a new file server.js
  • npm init -y
  • npm i express nodemon ejs express-session body-parser uuid
  • in the package.json file, change scripts -> start to nodemon server.js instead of node server.js
  • create new folder views and inside that create a new file base.ejs
  • create two more files header.ejs & footer.ejs in views folder

PART 02:

Designing the Form

Commands/Steps Used in PART TWO:

  • create a new folder public
  • and inside that public folder create a new file style.css
  • inside the public folder, create a new folder assets
  • put background.png inside assests folder

PART 03:

Adding the Login Functionality

Commands/Steps Used in PART THREE:

  • create a new file router.js

PART 04:

Implementing the Logout Feature

Commands/Steps Used in PART FOUR:

  • create a new file dashboard.ejs inside views folder

About

with Express & Node JS

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:EJS 48.5%Language:JavaScript 40.6%Language:CSS 10.9%