Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Management App

This is a simple user management application built with Node.js, Express.js, and EJS. The application allows users to perform CRUD (Create, Read, Update, Delete) operations on user data stored in a MongoDB database.

Features

  • Add a new user with a name, email, and profile picture.
  • View all users.
  • Edit user details.
  • Delete a user.

Demo

Screenshot (142) Screenshot (143) Screenshot (144)

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js and npm installed on your machine.
  • MongoDB installed and running on your local machine or a MongoDB Atlas account.

Installation

  1. Clone the repository:

    git clone https://github.com/UMARSYED22/User Management App.git
  2. Navigate to the project directory:

    cd User Management App
  3. Install the dependencies:

    npm install
  4. Set up MongoDB: Ensure MongoDB is running on your local machine. If you are using MongoDB Atlas, update the connection string in the user.js model file.

Usage

  1. Start the server:

    node app.js
  2. Open your web browser and go to http://localhost:3000.

Project Structure

User Management App/
├── models/
│   └── user.js          # Mongoose schema and model for User
├── public/              # Static files (CSS, JS, images)
├── views/
│   ├── index.ejs        # Home page
│   ├── read.ejs         # View all users
│   └── edit.ejs         # Edit user page
├── app.js               # Main application file
└── package.json         # Project metadata and dependencies

Routes

GET / - Render the home page.
GET /read - Display all users.
POST /create - Create a new user.
GET /delete/:id - Delete a user by ID.
GET /edit/:userid - Render the edit user page.
POST /update/:userUpdateid - Update a user by ID.

Authors

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages