This project is a simple User Management System built with Node.js, Express, MongoDB, and client-side JavaScript (jQuery). It allows users to perform CRUD operations (Create, Read, Update, Delete) on user records.
- Create User: Add a new user with details like name, email, and role.
- Read Users: View a list of all users.
- Update User: Edit user details.
- Delete User: Remove a user from the system.
Before you begin, ensure you have the following installed:
- Node.js and npm (Node Package Manager)
- MongoDB (Community Edition or Atlas cloud service)
To get a local copy up and running follow these simple steps:
-
Clone the repo:
bash
Copy code
git clone https://github.com/nirravv/User-management-system.git
-
Install NPM packages:
cd user-management-system
npm install
- modify a
config.env
file in the root directory of the project according to your needs.
-
Start MongoDB service.
-
Run the Node.js server:
npm run start
Open your web browser and navigate to http://localhost:8080
to access the User Management System.
- POST
/api/users
: Create a new user. - GET
/api/users
: Fetch all users. - PUT
/api/users/:id
: Update a user by ID. - DELETE
/api/users/:id
: Delete a user by ID.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Project Link: https://github.com/nirravv/User-management-system