- Sign Up - Email, Password, Profile Image.
- Log In - Email, Password - with JWT.
- Profile
- Update Profile
-
Clone the repository:
git clone https://github.com/adarsh-2425/node-crud-task1.git cd node-crud-task1
-
Install dependencies:
npm i
-
Configure your MongoDB connection in .env/MONGODB_URI
-
Start the server
npm start
POST /api/auth/signup
: Register a new user.POST /api/auth/login
: Authenticate user and generate JWT token.
GET /api/profile/dashboard
: ProfilePUT /api/profile/update
: Update Profile