Skip to content

A friendly backend project for basic user authentication built with Express.js and MongoDB. Features user registration, password hashing with bcrypt, and login validation — all structured in a clean MVC architecture.

License

Notifications You must be signed in to change notification settings

ricoaprillananda/evelynauth-basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚔️ EvelynAuth - Basic User Authentication (No JWT)

A friendly backend project built with Node.js, Express.js, and MongoDB to handle basic user authentication without JWT or session tokens — just pure logic and clean architecture


Features

  • Register new users (with name, email, password)
  • Passwords are hashed using bcrypt
  • Login users with email and password validation
  • Retrieve all registered users (no password exposed)
  • No JWT or session — focused on foundational concepts

Tech Stack

  • Node.js
  • Express.js
  • MongoDB + Mongoose
  • bcrypt
  • Postman (for testing)

Project Structure


EvelynAuth/
├── controllers/
│ └── userController.js
├── models/
│ └── User.js
├── routes/
│ └── userRoutes.js
├── .env
├── .gitignore
├── package.json
├── server.js


📸 API Preview (Postman)

🔸 Register User

Register

🔸 Login User

Login

🔸 Get All Users

Users


🛠️ Setup Instructions

1. Clone repo

git clone https://github.com/ricoaprillananda/evelynauth-basic.gi

2. Install dependencies

cd evelynauth-basic
npm install

3. Setup .env file

PORT=5000  
MONGO_URI=your_mongo_connection_string

4. Run server

npm run dev

🍃🪽🪽🪽 Author Rico APrilla Nanda

About

A friendly backend project for basic user authentication built with Express.js and MongoDB. Features user registration, password hashing with bcrypt, and login validation — all structured in a clean MVC architecture.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published