Node CRUD Task 1

Requirements of Task

  • Sign Up - Email, Password, Profile Image.
  • Log In - Email, Password - with JWT.
  • Profile
  • Update Profile

Installation

  1. Clone the repository:

    git clone https://github.com/adarsh-2425/node-crud-task1.git
    cd node-crud-task1
  2. Install dependencies:

    npm i
  3. Configure your MongoDB connection in .env/MONGODB_URI

  4. Start the server

    npm start

API Endpoints

Authentication Routes

  • POST /api/auth/signup: Register a new user.
  • POST /api/auth/login: Authenticate user and generate JWT token.

Profile Routes

  • GET /api/profile/dashboard: Profile
  • PUT /api/profile/update: Update Profile