{"id":19864296,"url":"https://github.com/ervin-sungkono/todo-app-api","last_synced_at":"2026-04-15T19:36:38.852Z","repository":{"id":106480942,"uuid":"528261617","full_name":"ervin-sungkono/Todo-App-API","owner":"ervin-sungkono","description":"Todo App API using NodeJS, Express, and MySQL","archived":false,"fork":false,"pushed_at":"2023-04-16T14:54:34.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T15:34:43.824Z","etag":null,"topics":["express","mysql","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"https://todo-app-api.glitch.me","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/ervin-sungkono.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":"2022-08-24T04:15:26.000Z","updated_at":"2023-04-16T15:02:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4a93260-8de7-40f8-b263-c3d5a062bd8c","html_url":"https://github.com/ervin-sungkono/Todo-App-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ervin-sungkono%2FTodo-App-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ervin-sungkono%2FTodo-App-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ervin-sungkono%2FTodo-App-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ervin-sungkono%2FTodo-App-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ervin-sungkono","download_url":"https://codeload.github.com/ervin-sungkono/Todo-App-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241273167,"owners_count":19937096,"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":["express","mysql","nodejs","rest-api"],"created_at":"2024-11-12T15:18:10.706Z","updated_at":"2025-10-24T13:06:10.994Z","avatar_url":"https://github.com/ervin-sungkono.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Todo App API\nTodo App API using NodeJS, Express, and MySQL\n\n## Features\n1. Authentication API using JWT Token\n2. CRUD Todo using REST API\n\n## Installation Guide\n1. Clone the project\n    ```sh\n    git clone https://github.com/ervin-sungkono/Todo-App-BE.git\n    ```\n2. Install dependencies\n    ```sh\n    npm install\n    ```\n3. Generate .env file and remove .env.example\n   ```sh\n    cp .env.example .env\n   ``` \n4. Set up environment variables\n5. Run the project\n   ```sh\n    npm start\n   ```\n\n## Endpoints\nThis API uses Authentication from JWT Token to accesss certain endpoints, check guides below for getting authenticated.\n\n### Authentication\nRequest:\n```http\n    GET /user\n```\nReturns the information of the currently authenticated user.\n\nRequest:\n```http\n    POST /user/register\n```\n| Parameter | Type | Description |\n| :--- | :--- | :--- |\n| `username` | `string` | **Required**. Your Username |\n| `password` | `string` | **Required**. Your Password |\n| `confirmPassword` | `string` | **Required**. Your Confirm Password |\n| `email` | `string` | **Required**. Your Email Address |\n\nRegisters the user into database.\n\nRequest:\n```http\n    POST /user/login\n```\n| Parameter | Type | Description |\n| :--- | :--- | :--- |\n| `username` | `string` | **Required**. Your Username |\n| `password` | `string` | **Required**. Your Password |\n\nAuthenticate the user, will return a token in response.\n\n### CRUD Todo\nRequest:\n```http\n    GET /todo\n```\nReturns all the todo list that is created by the user.\n\nRequest:\n```http\n    GET /todo/id\n```\nReturns a todo with the given id if it is created by the user.\n\nRequest:\n```http\n    POST /todo\n```\n| Parameter | Type | Description |\n| :--- | :--- | :--- |\n| `title` | `string` | **Required**. Your Todo Title |\n| `due_date` | `date` | **Required**. Due Date for the Todo |\n\nAdds a todo into the database.\n\nRequest:\n```http\n    PATCH /todo/id\n```\n| Parameter | Type | Description |\n| :--- | :--- | :--- |\n| `title` | `string` | **Required**. Your Todo Title |\n| `due_date` | `date` | **Required**. Due Date for the Todo |\n| `completed` | `tinyint` | **Required**. Determines whether Todo is completed or not |\n\nUpdates a todo with given id.\n\nRequest:\n```http\n    DELETE/todo/id\n```\nDeletes a todo with given id.\n\n## Status Codes\n| Status Code | Description |\n| :--- | :--- |\n| 200 | `OK` |\n| 201 | `CREATED` |\n| 400 | `BAD REQUEST` |\n| 409 | `CONFLICT` |\n| 422 | `UNPROCESSABLE ENTITY` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fervin-sungkono%2Ftodo-app-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fervin-sungkono%2Ftodo-app-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fervin-sungkono%2Ftodo-app-api/lists"}