Skip to content

amarchavan-1/express-mysql-app-databoard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👥 User Management System – Express & MySQL

This is a simple full-stack user management system built using Node.js, Express, MySQL, and EJS. It demonstrates the implementation of basic CRUD operations with user-friendly UI templates and password-protected edits/deletes.


🚀 Features

  • 🔢 Dashboard with User Count
  • 🧾 View All Users (Sorted by Recent)
  • Add New User (with Faker UUID)
  • ✏️ Edit Username (with Password Verification)
  • Delete User (with Password Verification)
  • 🎨 EJS Templating for Views
  • 🛡️ Method Override for PATCH & DELETE

⚙️ Tech Stack

Technology Usage
Node.js JavaScript runtime
Express.js Web framework for Node.js
MySQL Relational database
mysql2 MySQL client for Node.js
EJS Templating engine
Faker.js Generate random user data
Method-Override Override POST to use PATCH/DELETE
Bootstrap For UI styling (optional)


🛠️ Setup Instructions

1. Clone the Repo

2. npm install

3. MySQL Setup

Create a database named user_db

Run this SQL to create the users table: CREATE TABLE users ( userid VARCHAR(255) PRIMARY KEY, username VARCHAR(255), email VARCHAR(255), password VARCHAR(255), created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );

4. Start the App

node app.js

📸 Screenshots

Screenshot 2025-06-24 123351 Screenshot 2025-05-04 214253 Screenshot (7) Screenshot (6) Screenshot (5) Screenshot (4) Screenshot (3)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published