A simple Node.js and Express.js web application that provides a CRUD interface for managing users stored in a MySQL database. It uses EJS templating for the frontend, Faker.js for generating random IDs, and supports method overrides for handling HTTP verbs like PATCH and DELETE via forms.
- ๐ Dashboard showing total number of users
- ๐ฅ View all users
- โ Add new user via form
- โ๏ธ Edit existing user (with password verification)
- โ Delete user (with password verification)
- ๐๏ธ MySQL database integration
- ๐จ EJS-based dynamic views
-
Clone the repository
git clone https://github.com/Mubeen-Channa/User-Management-System.git
-
Install dependencies
- npm install
-
Set up MySQL database
- Create a MySQL database named info
- Run the following SQL to create the users table:
-
Update MySQL credentials
- Express
- EJS
- MySQL2
- Faker.js
- Method-Override
- UUID
- node app.js
- Visit: http://localhost:3000