This is a Backend API for Todo App, with user Authentication functionality. Users are able to perform CRUD operations using the Task API. The API was built using
Node.js,Express, andMongoDB.
This API provides the necessary endpoints for user authentication and task management. Users can register, log in, and delete their accounts using the
User API.
Once authenticated, users can create, read, update, and delete tasks using the
Task API.
Host URL: https://todo-api-with-auth.onrender.com
-
Get profile details:
/api/v1/user/me -
Logout user:
/api/v1/user/logout
-
Register user:
/api/v1/user/newRequired: { name, email, password }
-
Login user:
/api/v1/user/loginRequired: { email, password }
- Delete account:
/api/v1/user/delete
- Get my tasks:
/api/v1/task/mytasks
-
Create new Task:
/api/v1/task/newRequired: { title, description }
-
Update task:
/api/v1/task/idReaquired: replace
idtotask._idinside urlparams
-
Delete Task:
/api/v1/task/idReaquired: replace
idtotask._idinside urlparams
- config.env file path:
/data/confin.env - variable in .env file:
PORT =
MONGO_URI = <Mongodb database path>
JWT_SECRET =
NODE_ENV = Development
FRONTEND_URL =