https://github.com/kr1shnam00rthi/tasks-api
Simple RESTful APIs for a to-do App
https://github.com/kr1shnam00rthi/tasks-api
express-js html-css-javascript mysql node-js to-do-app
Last synced: 3 months ago
JSON representation
Simple RESTful APIs for a to-do App
- Host: GitHub
- URL: https://github.com/kr1shnam00rthi/tasks-api
- Owner: Kr1shnam00rthi
- Created: 2025-06-18T06:11:36.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-06-27T16:02:16.000Z (3 months ago)
- Last Synced: 2025-06-27T17:20:25.363Z (3 months ago)
- Topics: express-js, html-css-javascript, mysql, node-js, to-do-app
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Tasks API
### Description
+ Created the backend for a to-do app using Node.js and MySQL, performing CRUD operations to efficiently manage tasks via RESTful APIs.
+ Implemented JWT-based authentication to securely manage user sessions.### Routes
#### Auth routes
```
POST /login - Login and receive JWT token
POST /register - Submit registration details and receive OTP via email
POST /verify - Verify OTP and complete registration
POST /forgot-password - Submit password reset request and receive OTP via email
POST /reset-password - Set new password using the received OTP
POST /change-password - Change password by providing the new one
POST /logout - Clear session and logout
```#### Tasks routes
```
POST /tasks - Create a new task
GET /tasks - Retrieve all tasks
PUT /tasks/:id - Update a specific task by ID
DELETE /tasks/:id - Delete a specific task by ID
```### Installation
```sh
git clone https://github.com/Kr1shnam00rthi/Tasks-API
cd Tasks-API
npm install package.json
node app.js
```
+ Add a .env file in the Tasks-API directory to store environment variables.