{"id":18135373,"url":"https://github.com/skrodrigo/notify","last_synced_at":"2025-04-05T23:33:53.710Z","repository":{"id":260485395,"uuid":"863797835","full_name":"skrodrigo/notify","owner":"skrodrigo","description":"This API allows news management, including creation, listing, updating and deletion of publications. It has a user authentication and registration system using Fastify, as well as support for uploading images via pre-signed Supabase URLs.","archived":false,"fork":false,"pushed_at":"2024-11-03T15:42:09.000Z","size":10951,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T22:32:18.420Z","etag":null,"topics":["api-crud","clean-architecture","fastify","layered-architecture","mvc-architecture","prisma","storage","supabase","typescript"],"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/skrodrigo.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":"2024-09-26T23:54:10.000Z","updated_at":"2025-03-06T02:41:39.000Z","dependencies_parsed_at":"2024-12-20T03:33:09.731Z","dependency_job_id":"08d8fe37-4912-4101-8a5f-5f435de14485","html_url":"https://github.com/skrodrigo/notify","commit_stats":null,"previous_names":["skrodrigo/notify-backend-nodejs","skrodrigo/notify-backend","skrodrigo/notify-backend-fastify","skrodrigo/notify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrodrigo%2Fnotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrodrigo%2Fnotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrodrigo%2Fnotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrodrigo%2Fnotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skrodrigo","download_url":"https://codeload.github.com/skrodrigo/notify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415821,"owners_count":20935384,"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-crud","clean-architecture","fastify","layered-architecture","mvc-architecture","prisma","storage","supabase","typescript"],"created_at":"2024-11-01T14:06:58.530Z","updated_at":"2025-04-05T23:33:53.689Z","avatar_url":"https://github.com/skrodrigo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# News CRUD API\n\nEsta é uma API para gerenciar notícias, permitindo criar, listar, atualizar e deletar notícias.\n\n## Tecnologias Utilizadas\n\n- Node.js\n- Fastify\n- Prisma\n- PostgreSQL\n\n## Instalação\n\n1. Clone o repositório:\n   ```bash\n   git clone https://github.com/skrodrigo/news.crud.api.git\n   cd news.crud.api\n   ```\n\n2. Instale as dependências:\n   ```bash\n   npm install\n   ```\n\n3. Configure o banco de dados no arquivo `.env`:\n   ```bash\n   DATABASE_URL=postgresql://USER:PASSWORD@localhost:5432/newsAPI\n   ```\n\n4. Execute as migrações do Prisma:\n   ```bash\n   npx prisma migrate dev\n   ```\n\n5. Inicie o servidor:\n   ```bash\n   npm run dev\n   ```\n\n## Endpoints\n\n- `GET /news`: Listar todas as notícias\n- `GET /news/:id`: Obter uma notícia por ID\n- `POST /news`: Criar uma nova notícia\n- `PUT /news/:id`: Atualizar uma notícia existente\n- `DELETE /news/:id`: Deletar uma notícia por ID\n\n## Contribuição\n\nSinta-se à vontade para abrir issues ou pull requests.\n\n## Swagger Documentation\n\nThe current swagger.yml needs updates to include:\n- Authentication endpoints\n- Security schemes\n- Request/Response examples\n\nHere's a partial fix for the security scheme:\n```yaml\ncomponents:\n  securitySchemes:\n    bearerAuth:\n      type: http\n      scheme: bearer\n      bearerFormat: JWT\n  \nsecurity:\n  - bearerAuth: []\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskrodrigo%2Fnotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskrodrigo%2Fnotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskrodrigo%2Fnotify/lists"}