{"id":23120961,"url":"https://github.com/sam4web/docket-backend","last_synced_at":"2026-04-06T01:35:12.701Z","repository":{"id":263411984,"uuid":"879187456","full_name":"sam4web/docket-backend","owner":"sam4web","description":"Backend for Docket: a note-taking app API built with Node.js and Express.","archived":false,"fork":false,"pushed_at":"2024-11-18T11:14:30.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T14:48:21.397Z","etag":null,"topics":["backend","expressjs","jwt","mongodb","nodejs","note-app"],"latest_commit_sha":null,"homepage":"https://docket-backend-qxw8.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sam4web.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-27T08:34:08.000Z","updated_at":"2024-11-18T11:14:34.000Z","dependencies_parsed_at":"2024-11-18T12:35:12.848Z","dependency_job_id":"1987b1a2-b15d-4217-af7b-c992623381ae","html_url":"https://github.com/sam4web/docket-backend","commit_stats":null,"previous_names":["sam4web/docket-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam4web%2Fdocket-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam4web%2Fdocket-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam4web%2Fdocket-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam4web%2Fdocket-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sam4web","download_url":"https://codeload.github.com/sam4web/docket-backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247112766,"owners_count":20885606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","expressjs","jwt","mongodb","nodejs","note-app"],"created_at":"2024-12-17T06:14:24.280Z","updated_at":"2025-04-04T03:16:44.897Z","avatar_url":"https://github.com/sam4web.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docket Backend\n\nDocket Backend is a robust RESTful API built with **Node.js** and **Express.js**, designed to support secure and\nefficient note management. This backend service handles user authentication with **JSON Web Tokens (JWT)** for secure\nlogin and registration, and utilizes **MongoDB** for reliable data storage. The API provides full CRUD functionalities\nfor notes while maintaining data integrity and security.\n\n## Table of Contents\n\n- [Features](#features)\n- [Technologies Used](#technologies-used)\n- [Endpoints](#endpoints)\n    - [Authentication](#authentication)\n    - [Users](#users)\n    - [Notes](#notes)\n- [Project Links](#project-links)\n\n## Features\n\n- **User Authentication**: Secure user sign-up, login, and logout functionalities powered by JWT, ensuring secure\n  session management.\n- **Create Notes**: Allows users to add new notes with titles and content, stored securely in MongoDB.\n- **Read Notes**: Retrieve a list of all notes or access individual notes with detailed data.\n- **Update Notes**: Enables users to edit the title and content of their notes.\n- **Delete Notes**: Allows users to delete notes from their account, ensuring data is removed from the database.\n\n## Technologies Used\n\n- **[Node.js](https://nodejs.org/)**: JavaScript runtime for server-side code.\n- **[Express.js](https://expressjs.com/)**: Web framework for API routing and HTTP requests.\n- **[MongoDB](https://www.mongodb.com/)**: NoSQL database for scalable, flexible data storage.\n- **[Mongoose](https://mongoosejs.com/)**: ODM for schema-based MongoDB interactions.\n- **[JWT (JSON Web Tokens)](https://jwt.io/)**: Secure, URL-safe token for user authentication.\n\n## Endpoints\n\n### Authentication\n\n- **`POST /auth/register`**       ➜ Register a new user\n- **`POST /auth/login`**          ➜ Log in an existing user\n- **`POST /auth/logout`**         ➜ Log out the current user\n- **`POST /auth/refresh`**        ➜ Refresh the JWT token\n\n### Users\n\n- **`POST /auth/delete-user`**     ➜ Delete the current user account\n\n### Notes\n\n- **`GET /notes`**                ➜ Retrieve all notes\n- **`GET /notes/:id`**            ➜ Retrieve a specific note by ID\n- **`POST /notes`**               ➜ Create a new note\n- **`PUT /notes/:id`**            ➜ Update an existing note by ID\n- **`DELETE /notes/:id`**         ➜ Delete a specific note by ID\n\n## Project Links\n\n- **Source Code**:  [Backend Repository](https://github.com/sam4web/docket-backend)\n- **Live API**: [Docket API](https://docket-backend-qxw8.onrender.com/)\n- **Frontend Code**: [Frontend Repository](https://github.com/sam4web/docket-frontend)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsam4web%2Fdocket-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsam4web%2Fdocket-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsam4web%2Fdocket-backend/lists"}