https://github.com/abreuclariana/register-authentication
Register Authentication
https://github.com/abreuclariana/register-authentication
bootstrap bycrypt dotenv ejs expressjs javascript mongodb nodejs nodemon
Last synced: about 1 year ago
JSON representation
Register Authentication
- Host: GitHub
- URL: https://github.com/abreuclariana/register-authentication
- Owner: abreuclariana
- Created: 2025-02-23T20:49:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-09T19:16:51.000Z (about 1 year ago)
- Last Synced: 2025-04-09T20:25:21.234Z (about 1 year ago)
- Topics: bootstrap, bycrypt, dotenv, ejs, expressjs, javascript, mongodb, nodejs, nodemon
- Language: EJS
- Homepage: https://register-authentication-2.onrender.com/
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🔒 Authentication System with Express, MongoDB, and Bcrypt
This is a user authentication project built with **Node.js**, **Express**, **MongoDB**, and **Bcrypt** for secure password hashing. The system allows users to register and log in securely.
## 🚀 Technologies Used
- **Node.js** - JavaScript runtime environment for backend development
- **Express** - Web framework for creating the server
- **MongoDB** - NoSQL database to store user data
- **Mongoose** - ODM library for MongoDB data modeling
- **Bcrypt** - Library for secure password hashing
- **EJS** - Template engine for rendering dynamic pages
- **Dotenv** - Environment variable management
## 📂 Project Structure
📦 backend ┣ 📂 views (EJS templates for rendering) ┣ 📂 public (Static files: CSS, JS, images) ┣ 📜 app.js (Main server code) ┣ 📜 .env (Environment variables) ┣ 📜 package.json (Project dependencies)
## 🔧 Setup and Installation
### 1️⃣ Clone the repository:
git clone https://github.com/abreuclariana/register-authentication
cd register-authentication
2️⃣ Install dependencies:
npm install
3️⃣ Configure the .env file:
Create a .env file in the root directory and add your configurations:
S3_BUCKET=YOURS3BUCKET
SECRET_KEY=YOURSECRETKEYGOESHERE
5️⃣ Run the server:
node app.js
The server will be running at http://127.0.0.1:4000 🚀
🛠 Features
✅ User registration with secure password hashing
✅ User login with password verification
✅ Dynamic rendering with EJS
✅ MongoDB database to store credentials
## 📌 Project Routes
| Method | Route | Description |
|--------|------------|-------------------------|
| `GET` | `/` | Home page |
| `GET` | `/login` | Login page |
| `GET` | `/register` | Registration page |
| `POST` | `/register` | User registration |
| `POST` | `/login` | User authentication |
Developed with by Clariana Abreu
This **README.md** is well-structured, easy to understand, and provides clear instructions for running the project. 🚀