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
GitHub Repository: session-auth-app
- 🔐 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
- 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
# 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-appnpm install⭐ If you like this project, consider giving it a star on GitHub!