{"id":50886201,"url":"https://github.com/angeldelacruzdev/fastify-tutorial","last_synced_at":"2026-06-15T17:05:37.735Z","repository":{"id":115455070,"uuid":"411558826","full_name":"angeldelacruzdev/fastify-tutorial","owner":"angeldelacruzdev","description":"Fastify Supermarket API","archived":false,"fork":false,"pushed_at":"2026-06-08T19:23:52.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-08T21:16:30.982Z","etag":null,"topics":["fastify","invoice","mongodb","supermaket-api","supermarket","supermarket-management","supermarket-management-system"],"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/angeldelacruzdev.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":"2021-09-29T06:39:24.000Z","updated_at":"2026-06-08T19:23:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4fc8894-2cc3-46da-bd4c-82be0cd556a8","html_url":"https://github.com/angeldelacruzdev/fastify-tutorial","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/angeldelacruzdev/fastify-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeldelacruzdev%2Ffastify-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeldelacruzdev%2Ffastify-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeldelacruzdev%2Ffastify-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeldelacruzdev%2Ffastify-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angeldelacruzdev","download_url":"https://codeload.github.com/angeldelacruzdev/fastify-tutorial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeldelacruzdev%2Ffastify-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34372202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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","invoice","mongodb","supermaket-api","supermarket","supermarket-management","supermarket-management-system"],"created_at":"2026-06-15T17:05:36.755Z","updated_at":"2026-06-15T17:05:37.726Z","avatar_url":"https://github.com/angeldelacruzdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fastify - Supermarket API\n\nREST API for a supermarket management system built with Fastify and MongoDB.\n\n## Stack\n\n- **Runtime:** Node.js 22+\n- **Framework:** Fastify 5\n- **Database:** MongoDB + Mongoose 9\n- **Documentation:** Swagger/OpenAPI 3 (@fastify/swagger + @fastify/swagger-ui)\n- **Dev:** Nodemon\n\n## Entities\n\n| Entity        | Endpoint             | Description                     |\n|---------------|----------------------|---------------------------------|\n| Paises        | `/paises`            | Country catalog                 |\n| Provincias    | `/provincias`        | Provinces by country            |\n| Municipios    | `/municipios`        | Municipalities by province      |\n| Distritos     | `/distritos`         | Districts by municipality       |\n| Sectores      | `/sectores`          | Sectors by district             |\n| Sucursales    | `/sucursales`        | Branches                        |\n| Proveedores   | `/proveedores`       | Suppliers                       |\n| Productos     | `/products`          | Products catalog                |\n| TipoProductos | `/tipo-productos`    | Product types                   |\n| Clientes      | `/clientes`          | Customers                       |\n\nAll entities expose full CRUD operations (GET, GET/:id, POST, PUT, DELETE).\n\n## How to run\n\n### Locally\n\n```bash\n# Install dependencies\nnpm install\n\n# Configure environment variables\n# Create a .env file with:\n#   MONGO_DB=mongodb://localhost:27017/fastify-tutorial\n#   PORT=3000\n\n# Start in dev mode (with Nodemon)\nnpm run dev\n```\n\n### With Docker\n\n```bash\n# Start both the app and MongoDB\ndocker compose up -d\n\n# Rebuild after code changes\ndocker compose up -d --build app\n```\n\n## Documentation\n\nOnce the server is running:\n\n- **Swagger UI:** http://localhost:3000/documentation\n- **OpenAPI JSON:** http://localhost:3000/documentation/json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangeldelacruzdev%2Ffastify-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangeldelacruzdev%2Ffastify-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangeldelacruzdev%2Ffastify-tutorial/lists"}