{"id":23174600,"url":"https://github.com/eliacontini/todo-api-heroku","last_synced_at":"2026-05-04T13:33:07.945Z","repository":{"id":78902833,"uuid":"354868928","full_name":"EliaContini/todo-api-heroku","owner":"EliaContini","description":"A simple REST API to manage todos. Playground to test Fastify, MongoDB Atlas and Heroku.","archived":false,"fork":false,"pushed_at":"2021-05-16T14:27:44.000Z","size":185,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T00:42:48.265Z","etag":null,"topics":["fastify","heroku","mongodb-atlas","mongoose","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"https://elia.contini.page/blog/fastify-mongodb-heroku-rest-api/","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/EliaContini.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":"2021-04-05T14:51:12.000Z","updated_at":"2021-05-16T14:27:47.000Z","dependencies_parsed_at":"2023-05-06T17:01:13.213Z","dependency_job_id":null,"html_url":"https://github.com/EliaContini/todo-api-heroku","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EliaContini/todo-api-heroku","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliaContini%2Ftodo-api-heroku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliaContini%2Ftodo-api-heroku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliaContini%2Ftodo-api-heroku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliaContini%2Ftodo-api-heroku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EliaContini","download_url":"https://codeload.github.com/EliaContini/todo-api-heroku/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliaContini%2Ftodo-api-heroku/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273548745,"owners_count":25125255,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["fastify","heroku","mongodb-atlas","mongoose","nodejs","rest-api"],"created_at":"2024-12-18T05:30:22.703Z","updated_at":"2026-05-04T13:33:02.923Z","avatar_url":"https://github.com/EliaContini.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A simple REST API to manage todos using Fastify, MongoDB and Heroku\n\nThis solution uses [Fastify](https://www.fastify.io/), [MongoDB Atlas](https://www.mongodb.com/cloud/atlas) and it is configured to be deployed on [Heroku](https://www.heroku.com/).\n\nYou can read more details about the implementation in my [blog post](https://elia.contini.page/blog/fastify-mongodb-heroku-rest-api/).\n\n## Install dependencies\n\n    $ npm install\n\n## Configure MongoDB URI for local development\n\nCopy `sample.env` in `.env` and edit with your MONGODB_URI.\n\n## Run the server\n\n    $ npm start\n\nThe server listens to connections at http://localhost:3000\n\n## Run the tests\n\n    $ npm test\n\n## Deployment on Heroku\n\nLogin with your Heroku account\n\n    $ heroku login\n\nCreate the app\n\n    $ heroku create\n\nSet environment variable with MongoDB Atlas connection string\n\n    $ heroku config:set MONGO_DB_URI=\"mongodb+srv://\u003cusername\u003e:\u003cpassword\u003e@\u003ccluster-name\u003e.mongodb.net/\u003cdb-name\u003e\"\n\nDeploy\n\n    $ git push heroku master\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliacontini%2Ftodo-api-heroku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliacontini%2Ftodo-api-heroku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliacontini%2Ftodo-api-heroku/lists"}