{"id":15999409,"url":"https://github.com/sinedied/azure-functions-todo-api","last_synced_at":"2025-03-17T20:30:21.600Z","repository":{"id":46236688,"uuid":"515188565","full_name":"sinedied/azure-functions-todo-api","owner":"sinedied","description":"Simple todo list API built with Azure Functions and Node.js","archived":false,"fork":false,"pushed_at":"2022-07-22T12:53:37.000Z","size":132,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T00:16:33.610Z","etag":null,"topics":["api","azure","azure-functions","bicep","infrastructure-as-code","javascript","nodejs","serverless","todo"],"latest_commit_sha":null,"homepage":"https://func-todo-api-prod-pavmt75fjq3kk.azurewebsites.net/api/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sinedied.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-18T13:07:58.000Z","updated_at":"2022-08-24T12:07:04.000Z","dependencies_parsed_at":"2022-09-14T12:30:21.466Z","dependency_job_id":null,"html_url":"https://github.com/sinedied/azure-functions-todo-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinedied%2Fazure-functions-todo-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinedied%2Fazure-functions-todo-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinedied%2Fazure-functions-todo-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinedied%2Fazure-functions-todo-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinedied","download_url":"https://codeload.github.com/sinedied/azure-functions-todo-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878483,"owners_count":20362433,"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":["api","azure","azure-functions","bicep","infrastructure-as-code","javascript","nodejs","serverless","todo"],"created_at":"2024-10-08T08:43:03.585Z","updated_at":"2025-03-17T20:30:21.037Z","avatar_url":"https://github.com/sinedied.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✅ Todo API for Azure Functions\n\n[![Deploy on Azure](https://github.com/sinedied/azure-functions-todo-api/actions/workflows/deploy.yml/badge.svg)](https://github.com/sinedied/azure-functions-todo-api/actions/workflows/deploy.yml)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n\u003e Simple todo list API built with Azure Functions and Node.js.\n\nAll entries are stored in-memory and are not persisted, so when the server is stopped all data is lost.\n\n## API details\n\nRoute                                        | Description\n---------------------------------------------|------------------------------------\n`GET    /api/`                               | Get server info\n`GET    /api/users/:userId/tasks`            | Get tasks for specified user, creating a new account if needed.\n`POST   /api/users/:userId/tasks`            | Add a new task for specified user, creating a new account if needed. Payload: `{ \"description\": \"\u003ctask_description\u003e\" }`\n`PATCH  /api/users/:userId/tasks/:taskId`    | Update specified task. Payload: `{ \"completed\": \u003cboolean\u003e }`\n`DELETE /api/users/:userId/tasks/:taskId`    | Delete specified task\n\n## Running the server locally\n\nMake sure you have [Node.js](https://nodejs.org) and [Azure Functions Core Tools](https://aka.ms/functions-core-tools) installed.\n\n1. Run `cd api \u0026\u0026 npm install`.\n2. Run `npm start`. The API will be available at `http://localhost:7071/api/`.\n\n## Deploying on Azure\n\nYou need an [Azure account](https://azure.microsoft.com/free/?WT.mc_id=javascript-0000-yolasors), [Azure CLI](https://aka.ms/tools/azure-cli) and [GitHub CLI](https://cli.github.com) installed.\nIf you're using Windows, you'll also either need to use [WSL](https://docs.microsoft.com/windows/wsl/install?WT.mc_id=javascript-0000-yolasors) or [Git Bash](https://git-scm.com/downloads) to run the scripts.\n\n1. Run `.azure/setup.sh`, and follow the instructions. At the end of the process, the first deployment will be triggered.\n\nNow every time you make a commit to the repository, the project will be automatically redeployed to Azure using [GitHub Actions](https://github.com/features/actions).\n\nIf you want to clean up everything and delete the deployed resources, run `.azure/setup.sh --terminate`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinedied%2Fazure-functions-todo-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinedied%2Fazure-functions-todo-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinedied%2Fazure-functions-todo-api/lists"}