{"id":28421892,"url":"https://github.com/telattar/restauranto","last_synced_at":"2026-04-29T09:32:34.612Z","repository":{"id":295257261,"uuid":"989610704","full_name":"telattar/restauranto","owner":"telattar","description":"A NestJS REST API for managing restaurants and orders. Includes caching, validation, and real-time updates via WebSockets.","archived":false,"fork":false,"pushed_at":"2025-09-05T11:57:35.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-05T12:11:23.456Z","etag":null,"topics":["nestjs","prisma","websocket"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/telattar.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}},"created_at":"2025-05-24T13:05:47.000Z","updated_at":"2025-09-05T11:57:26.000Z","dependencies_parsed_at":"2025-05-24T14:46:07.572Z","dependency_job_id":"d7a66e0e-1a9f-40b1-889d-1732cbb90c6a","html_url":"https://github.com/telattar/restauranto","commit_stats":null,"previous_names":["telattar/restauranto"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/telattar/restauranto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telattar%2Frestauranto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telattar%2Frestauranto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telattar%2Frestauranto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telattar%2Frestauranto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telattar","download_url":"https://codeload.github.com/telattar/restauranto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telattar%2Frestauranto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32419945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"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":["nestjs","prisma","websocket"],"created_at":"2025-06-05T07:15:10.273Z","updated_at":"2026-04-29T09:32:34.594Z","avatar_url":"https://github.com/telattar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧑‍🍳👩‍🍳👨‍🍳 Restauranto\nA very simple backend project where I google \"NestJS best practices\" every 5 minutes.\nBonus: live order updates using websockets 👾\n\n## Features\n\n- **NestJS architecture**: Modular backend structure.\n- **Prisma ORM** using PostgreSQL database.\n- **Real-time order updates**: websocket support for live order status tracking.\n- **Caching** for fast API responses.\n- **Validation and error handling**: DTOs and global filters keep data clean.\n- **Unit and E2E tests**: test coverage from logic to endpoints.\n- **CI/CD**: Automated linting and tests via GitHub actions.\n- **Strict-typing**: for TypeScript safety.\n\n## Getting started\n\n 1. Clone and install\n\n```bash\ngit clone https://github.com/telattar/restauranto.git\ncd restauranto\nnpm install\n```\n\n 2. Configure your environment\n\nCopy `.env.sample` to `.env` and set your PostgreSQL connection string:\n\n```\nDATABASE_URL=postgresql://user:password@localhost:your-port/some-database\n```\n\n 3. Run DB migrations using Prisma\n\n```bash\nnpx prisma migrate dev --schema=src/database/schema.prisma\n```\n\n 4. Start the server\n\n```bash\nnest start --watch\n```\n\n 5. Run the tests\n\n- Unit Tests\n  ```bash\n  npm run test\n  ```\n- End-to-End Tests\n  ```bash\n  npm run test:e2e\n  ```\n---\n\n## API Overview\n\n### Restaurants\n\n- `GET /restaurants` — List all restaurants (cached to improve performance)\n- `GET /restaurants/:id` — Get restaurant by ID\n- `POST /restaurants` — Create a restaurant\n- `PATCH /restaurants/:id` — Update a restaurant\n- `DELETE /restaurants/:id` — Delete a restaurant\n\n### Products\n\n- `GET /products` — List all products\n- `GET /products/:id` — Get product by ID\n- `POST /products` — Create a product\n- `PATCH /products/:id` — Update a product\n- `DELETE /products/:id` — Delete a product\n\n### Orders\n\n- `GET /orders` — List all orders (paginated)\n- `GET /orders/:id` — Get order by ID\n- `POST /orders` — Create an order\n- `PATCH /orders/:id` — Update order status\n\n### Real-Time\n\n- WebSocket namespace: `/order-status`\n- Events: `order-status`, `created-order`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelattar%2Frestauranto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelattar%2Frestauranto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelattar%2Frestauranto/lists"}