{"id":41813534,"url":"https://github.com/sophiabrandt/fastify-bookmarkly","last_synced_at":"2026-01-25T07:09:05.212Z","repository":{"id":119695612,"uuid":"255349088","full_name":"sophiabrandt/fastify-bookmarkly","owner":"sophiabrandt","description":"example clean Node.js REST API with Fastify framework and MongoDB","archived":false,"fork":false,"pushed_at":"2024-07-18T14:48:43.000Z","size":344,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T08:46:39.300Z","etag":null,"topics":["clean-architecture","fastify"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sophiabrandt.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-13T14:22:15.000Z","updated_at":"2024-07-18T14:48:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"82cb5941-4887-4c86-b9f2-958575a12472","html_url":"https://github.com/sophiabrandt/fastify-bookmarkly","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sophiabrandt/fastify-bookmarkly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophiabrandt%2Ffastify-bookmarkly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophiabrandt%2Ffastify-bookmarkly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophiabrandt%2Ffastify-bookmarkly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophiabrandt%2Ffastify-bookmarkly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sophiabrandt","download_url":"https://codeload.github.com/sophiabrandt/fastify-bookmarkly/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophiabrandt%2Ffastify-bookmarkly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28747308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["clean-architecture","fastify"],"created_at":"2026-01-25T07:09:04.157Z","updated_at":"2026-01-25T07:09:05.207Z","avatar_url":"https://github.com/sophiabrandt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MIT License][license-shield]][license-url]\n\n# fastify-bookmarkly\n\n## Table of Contents\n\n- [About](#about)\n  - [Built With](#built-with)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Tests](#tests)\n- [Contributing](#contributing)\n- [License](#license)\n- [Acknowledgments](#acknowledgments)\n\n## About\n\n**fastify-bookmarkly** is an example backend API using the [Fastify][fastify] framework, MongoDB, and a [clean architecture][clean].\n\nParts of the original code are from Bill Sourour's [DevMastery Comments Microservice API][clean-micro] and [Clean RESTful API with Node.js][clean-node].\n\nThe project is a learning repository where I explore how to code a \"clean\" Node API from scratch.\n\n### Built With\n\n- Node.js \u0026 [Fastify][fastify]\n- Docker \u0026 Docker Compose\n- MongoDB\n\n## Installation\n\n#### Prerequisites:\n\n- Node.js\n- [Docker](https://www.docker.com/)\n- [Docker Compose](https://docs.docker.com/compose/)\n\n#### 1. Clone the repository:\n\n```bash\n$ git clone git@github.com:sophiabrandt/fastify-bookmarkly.git \u0026\u0026 cd fastify-bookmarkly\n```\n\n#### 2. Adjust configuration\n\nCheck the `config` folder and change the name of variables as needed.\n\n#### 3. Install dependencies\n\n```bash\n$ pnpm install # or npm install\n```\n\n#### 4. Use Docker and Docker Compose to spin up the Mongo Database\n\n```bash\n$ docker-compose up -d\n```\n\n#### 5. Create Database schema\n\n```bash\n$ pnpm run db # or npm run db\n```\n\n## Usage\n\n```bash\n$ pnpm run dev # or npm run dev\n```\n\nVisit [http://localhost:3000/bookmarks](http://localhost:3000/bookmarks) with your browser.\n\nSwagger documentation is available under [http://localhost:3000/docs](http://localhost:3000/docs).\n\nExample request with [curl](https://curl.se):\n\n```sh\ncurl -X POST \\\n  'http://127.0.0.1:3000/bookmarks/' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"title\": \"hacker news\", \"description\": \"news for programmers\", \"url\": \"https://hackerweb.app\"}'\n```\n\nTo create a production build:\n\n```bash\n$ pnpm run build # or npm run build\n$ pnpm run start # or npm run start\n```\n\n## Tests\n\n```bash\n$ pnpm run test # or npm run test\n```\n\nFor now, the tests contain stubs, but are are already connected to MongoDB.\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\nCopyright © 2020 Sophia Brandt  \n[MIT Licence](LICENSE)\n\n## Acknowledgments\n\n- Bill Sourour for [DevMastery Comments Microservice API][clean-micro] and [Clean RESTful API with Node.js][clean-node]\n\n[license-shield]: https://img.shields.io/badge/License-MIT-green.svg?style=flat-square\n[license-url]: https://github.com/sophiabrandt/fastify-bookmarkly/blob/master/LICENSE\n[fastify]: https://www.fastify.io/\n[clean]: https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html\n[clean-micro]: https://github.com/dev-mastery/comments-api\n[clean-node]: https://github.com/arcdev1/mm_express_api_example\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsophiabrandt%2Ffastify-bookmarkly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsophiabrandt%2Ffastify-bookmarkly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsophiabrandt%2Ffastify-bookmarkly/lists"}