{"id":28719951,"url":"https://github.com/eduardapontel/support-tickets","last_synced_at":"2026-05-05T17:33:11.359Z","repository":{"id":298182749,"uuid":"997674555","full_name":"eduardapontel/support-tickets","owner":"eduardapontel","description":"A lightweight Node.js REST API for managing customer support tickets. Built using only native modules and custom utilities, this project allows full CRUD operations for support tickets, stored locally in a JSON file.","archived":false,"fork":false,"pushed_at":"2025-07-06T00:17:38.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-25T04:11:00.812Z","etag":null,"topics":["api-rest","crud","json","node-js"],"latest_commit_sha":null,"homepage":"","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/eduardapontel.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-07T00:12:05.000Z","updated_at":"2025-07-06T00:27:19.000Z","dependencies_parsed_at":"2025-08-20T00:40:23.292Z","dependency_job_id":"9de9bbf0-4680-46a4-a9dd-076066df41c1","html_url":"https://github.com/eduardapontel/support-tickets","commit_stats":null,"previous_names":["eduardapontel/support-tickets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eduardapontel/support-tickets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardapontel%2Fsupport-tickets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardapontel%2Fsupport-tickets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardapontel%2Fsupport-tickets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardapontel%2Fsupport-tickets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eduardapontel","download_url":"https://codeload.github.com/eduardapontel/support-tickets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardapontel%2Fsupport-tickets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32660330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api-rest","crud","json","node-js"],"created_at":"2025-06-15T06:06:13.782Z","updated_at":"2026-05-05T17:33:11.342Z","avatar_url":"https://github.com/eduardapontel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Support Tickets 🛠️\n\nA lightweight Node.js REST API for managing customer support tickets. Built using only native modules and custom utilities, this project allows full CRUD operations for support tickets, stored locally in a JSON file.\n\n\u003cbr\u003e\n\n## ✨ Features\n\n- Create new support tickets\n- List all existing tickets\n- Update ticket information and status\n- Delete tickets\n- Middleware for JSON body parsing and route handling\n- No external frameworks – built with Node.js core modules\n\n\u003cbr\u003e\n\n## 📁 Project Structure\n\n- `support-tickets/`\n   - `package.json`: Contains metadata about the project, such as name, version, and dependencies.\n   - `src/`: Contains the main source code of the application.\n\n     - **`server.js`**: Entry point of the server. It initializes the server, applies middlewares, and loads routes.\n\n     - **`controllers/`**: Holds the logic for handling ticket operations.\n       - **`tickets/`**\n         - `create.js`: Handles the creation of new support tickets.\n         - `index.js`: Retrieves and lists all support tickets.\n         - `remove.js`: Deletes a specific support ticket.\n         - `update.js`: Updates ticket data like title and description.\n         - `updateStatus.js`: Changes the status of an existing ticket.\n\n     - **`database/`**: Responsible for data persistence.\n       - `database.js`: Provides helper functions to read/write data from/to the JSON database.\n       - `db.json`: The actual database file storing all tickets in JSON format.\n\n     - **`middlewares/`**: Custom middleware functions used by the server.\n       - `jsonHandler.js`: Parses incoming requests with JSON payloads.\n       - `routeHandler.js`: Handles custom routing logic for incoming HTTP requests.\n\n     - **`routes/`**: Defines the API routes.\n       - `index.js`: Exports all route configurations to be used in the server.\n       - `tickets.js`: Defines routes related to ticket operations (GET, POST, PUT, DELETE).\n\n     - **`utils/`**: Utility/helper functions.\n       - `extractQueryParams.js`: Parses query parameters from URLs.\n       - `parseRoutePath.js`: Matches and parses dynamic route paths (e.g., `/tickets/:id`).\n\n\u003cbr\u003e\n\n## 🚀 Getting Started\n\n1. Clone the repository\n\n```bash\ngit clone https://github.com/eduardapontel/support-tickets.git\n```\n\n2. Install dependencies\n```bash\nnpm install\n```\n\n3. Run the server\n```bash\nnode src/server.js\n```\n\nThe API will be running at ```http://localhost:3333```.\n\n\u003cbr\u003e\n\n## 🔗 API Endpoints\n| Method | Endpoint              | Description          |\n| ------ | --------------------- | -------------------- |\n| GET    | `/tickets`            | List all tickets     |\n| POST   | `/tickets`            | Create a new ticket  |\n| PUT    | `/tickets/:id`        | Update ticket data   |\n| PATCH  | `/tickets/:id/status` | Update ticket status |\n| DELETE | `/tickets/:id`        | Delete a ticket      |\n\n\nAll data is stored persistently in src/database/db.json.\n\n\u003cbr\u003e\n\n## 🤝 Contributing \n\nFeel free to contribute to this project by submitting issues or pull requests. Your feedback and suggestions are always welcome!\n\n \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardapontel%2Fsupport-tickets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduardapontel%2Fsupport-tickets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardapontel%2Fsupport-tickets/lists"}