Skip to content

Session-Auth App – Built with Node.js, Express, EJS, JavaScript & CSS. Supports login/logout, protected routes, sessions + cookies

Notifications You must be signed in to change notification settings

shasbinas/session-auth-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧑‍💻 session-auth-app

A minimal session-based authentication app built with Node.js, Express, EJS, vanilla JavaScript, and CSS.
It demonstrates login/logout, protected routes, session + cookie handling

🔗 Live Demo / Repo

GitHub Repository: session-auth-app

✨ Features

  • 🔐 Session Auth using express-session
  • 🍪 Cookies for storing the session ID (HTTP-only)
  • 🔏 Protected Routes (middleware-based guard)
  • 👤 Sign Up / Login / Logout flows (demo-only)
  • 🗂️ EJS Views with partials and layouts
  • 🎨 Simple CSS styling (no framework required)
  • 🧪 Ready for Passport or JWT later if you need it

⚙️ Technologies Used

  • Node.js – Runtime environment
  • Express.js – Web framework
  • express-session – Session management
  • cookie-parser – Cookie handling
  • EJS – Templating engine
  • JavaScript (Vanilla) – Client-side interactivity
  • CSS3 – Styling
  • Git & GitHub – Version control and repo hosting

Quick Start (Setup & Run)

1) Clone the repo

# Using HTTPS
git clone https://github.com/shasbinas/session-auth-app.git
cd session-auth-app

# Or using SSH
git clone git@github.com:shasbinas/session-auth-app.git
cd session-auth-app

2) Install dependencies

npm install

⭐ If you like this project, consider giving it a star on GitHub!

About

Session-Auth App – Built with Node.js, Express, EJS, JavaScript & CSS. Supports login/logout, protected routes, sessions + cookies

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published