To install the project dependencies, run the following command:
npm install.env.local.example file is provided so create new .env.local file and set env there.
To start the development server, use:
npm run dev- URL:
/api/auth/register - Method:
POST - Description: Registers a new user.
- Request Body:
{ "fullName": "string", "email": "string", "password": "string" } - Response:
{ "status": 200, "message": "User registered successfully" }
-
URL:
/api/auth/login -
Method:
POST -
Description: Authenticates a user and returns a token.
-
Request Body:
{ "email": "string", "password": "string" } -
Response:
{ "token": "string" }You can find postman collection file so import to get test apis in postman.