Git Product home page Git Product logo

crud-user-management's Introduction

User Management Backend CRUD App

This is a backend application for managing user data, built using Express.js, Mongoose, and MongoDB. It provides a RESTful API for performing CRUD (Create, Read, Update, Delete) operations on user records.

Features

  • User Registration: Allows users to create an account with a unique username, email, and password.
  • User Login: Enables user authentication by verifying email and password.
  • Retrieve User: Provides endpoints to fetch user information by user ID.
  • Update User: Allows updating user details such as username and email and password.
  • Delete User: Enables deleting user accounts.

Technologies Used

  • Express.js: A fast and minimalist web framework for Node.js used for routing and handling HTTP requests.
  • Mongoose: An Object-Data Modeling (ODM) library for MongoDB that provides a straightforward way to interact with the database.
  • MongoDB: A NoSQL database used for storing user records.

Getting Started

Prerequisites

  • Node.js and npm should be installed on your machine.
  • MongoDB should be installed and running locally or on a remote server.

Installation

  1. Clone the repository:
git clone https://github.com/shoaibhasann/CRUD-user-management.git

Configure the MongoDB connection:

Open the .env file and replace the value of MONGO_URI with your MongoDB connection string.
Start the server: npm run start
By default, the server will start on http://localhost:6000.

API Endpoints:
- `POST /register`: Creates a new user by providing a username, email, and password.
- `POST /login`: Authenticates a user by verifying their email and password.
- `GET /users/:userId`: Retrieves user information by providing the user's ID.
- `PUT /users/:userId`: Updates user information by providing the user's ID and new data.
- `DELETE /users/:userId`: Deletes a user account by providing the user's ID.

Contributing
Contributions are welcome! If you find any issues or want to enhance the project, feel free to open a pull request.

Contact
For any inquiries or suggestions, please contact [email protected].

crud-user-management's People

Contributors

shoaibhasann avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.