Docket Backend is a robust RESTful API built with Node.js and Express.js, designed to support secure and efficient note management. This backend service handles user authentication with JSON Web Tokens (JWT) for secure login and registration, and utilizes MongoDB for reliable data storage. The API provides full CRUD functionalities for notes while maintaining data integrity and security.
- User Authentication: Secure user sign-up, login, and logout functionalities powered by JWT, ensuring secure session management.
- Create Notes: Allows users to add new notes with titles and content, stored securely in MongoDB.
- Read Notes: Retrieve a list of all notes or access individual notes with detailed data.
- Update Notes: Enables users to edit the title and content of their notes.
- Delete Notes: Allows users to delete notes from their account, ensuring data is removed from the database.
- Node.js: JavaScript runtime for server-side code.
- Express.js: Web framework for API routing and HTTP requests.
- MongoDB: NoSQL database for scalable, flexible data storage.
- Mongoose: ODM for schema-based MongoDB interactions.
- JWT (JSON Web Tokens): Secure, URL-safe token for user authentication.
POST /auth/register
➜ Register a new userPOST /auth/login
➜ Log in an existing userPOST /auth/logout
➜ Log out the current userPOST /auth/refresh
➜ Refresh the JWT token
POST /auth/delete-user
➜ Delete the current user account
GET /notes
➜ Retrieve all notesGET /notes/:id
➜ Retrieve a specific note by IDPOST /notes
➜ Create a new notePUT /notes/:id
➜ Update an existing note by IDDELETE /notes/:id
➜ Delete a specific note by ID
- Source Code: Backend Repository
- Live API: Docket API
- Frontend Code: Frontend Repository