Skip to content

Latest commit

Β 

History

History
80 lines (55 loc) Β· 1.87 KB

File metadata and controls

80 lines (55 loc) Β· 1.87 KB

UserTrack

UserTrack is a simple CRUD (Create, Read, Update, Delete) application built with Node.js, Express, MongoDB, and EJS templating.
It allows you to manage users with their name, email, and profile image.


πŸš€ Features

  • πŸ“Œ Create new users with name, email, and profile image.
  • πŸ“„ View all users in a clean, responsive interface (TailwindCSS).
  • ✏️ Edit existing user details.
  • πŸ—‘οΈ Delete users.
  • ❌ Prevents creating users with empty fields.

πŸ› οΈ Tech Stack

  • Backend: Node.js, Express.js
  • Frontend: EJS, TailwindCSS
  • Database: MongoDB (Mongoose)
  • Templating Engine: EJS

πŸ“‚ Project Structure

UserTrack/ β”œβ”€β”€ models/ β”‚ └── user.js β”œβ”€β”€ public/ β”‚ └── stylesheets/ β”‚ └── style.css β”œβ”€β”€ views/ β”‚ β”œβ”€β”€ index.ejs β”‚ β”œβ”€β”€ read.ejs β”‚ β”œβ”€β”€ create.ejs β”‚ └── edit.ejs β”œβ”€β”€ app.js └── package.json


βš™οΈ Installation & Setup

  1. Clone the repository
    git clone https://github.com/Akash972004/UserTrack.git
    cd UserTrack

install dependencies

npm install

Setup MongoDB

Make sure MongoDB is running locally or use MongoDB Atlas. Create a .env file (optional) and set your MongoDB URI: MONGO_URI=mongodb://localhost:27017/usertrack

Run the application

node app.js

nodemon app.js

Open in browser

http://localhost:3000

πŸ“Έ Screenshots

Home Page

image

User List

image

Edit Page

image