{"id":27069431,"url":"https://github.com/alessandro1918/blogpostapi","last_synced_at":"2026-05-06T18:31:46.431Z","repository":{"id":47200846,"uuid":"399229272","full_name":"Alessandro1918/blogpostAPI","owner":"Alessandro1918","description":"Um protótipo de API para salvar, ler, editar e deletar posts de diferentes autores em um blog","archived":false,"fork":false,"pushed_at":"2021-10-28T20:18:27.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T21:34:53.769Z","etag":null,"topics":["jwt","node-js","postgresql"],"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/Alessandro1918.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}},"created_at":"2021-08-23T19:45:46.000Z","updated_at":"2021-10-28T20:18:30.000Z","dependencies_parsed_at":"2022-09-01T19:02:36.141Z","dependency_job_id":null,"html_url":"https://github.com/Alessandro1918/blogpostAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Alessandro1918/blogpostAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alessandro1918%2FblogpostAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alessandro1918%2FblogpostAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alessandro1918%2FblogpostAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alessandro1918%2FblogpostAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alessandro1918","download_url":"https://codeload.github.com/Alessandro1918/blogpostAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alessandro1918%2FblogpostAPI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260630027,"owners_count":23039035,"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":["jwt","node-js","postgresql"],"created_at":"2025-04-05T21:32:22.708Z","updated_at":"2026-05-06T18:31:46.402Z","avatar_url":"https://github.com/Alessandro1918.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blogpostAPI\n\n## 🚀 Projeto\nUm protótipo de API para salvar, ler, editar e deletar posts de diferentes autores em um blog\n\n## 🛠️ Tecnologias\n- [JWT](https://jwt.io) (Autenticação de usuários por meio de tokens assinados pelo servidor da API)\n- [Node.js](https://nodejs.org/en/)\n- [PostgreSQL](https://www.postgresql.org)\n\n## 🗂️ Utilização\n\n### 🐑🐑 Clonando o repositório:\n\n```bash\n  $ git clone https://github.com/Alessandro1918/blogpostAPI.git\n```\n\n### 📥 Baixando as dependências:\n\n```bash\n  $ cd blogpostAPI\n\n  # Download dependencies to node_modules\n  $ npm install\n```\n\n### ▶️ Rodando o App:\n\n```bash\n  # Start the project:\n  $ npm start\n  \n  # Login\n  # Check usage and comments at file services/authService.js\n  $ POST http://localhost:3000/login       # Search the user in the db and returns a jtw token used to access authenticated routes. \n  \n  # Non-authenticated routes\n  # Check usage and comments at file services/postsService.js\n  $ GET http://localhost:3000/posts/                  # Returns all posts from the db\n  $ GET http://localhost:3000/posts/bolo-de-laranja   # Returns a single post from the db, filtered by it's slug\n  \n  # Authenticated routes\n  # Check usage and comments at file services/postsService.js\n  $ POST   http://localhost:3000/posts/                  # Save a post in the db\n  $ PUT    http://localhost:3000/posts/bolo-de-laranja   # Edit a post, filtered by it's slug\n  $ DELETE http://localhost:3000/posts/bolo-de-laranja   # Removes a post from the db, filtered by it's slug\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falessandro1918%2Fblogpostapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falessandro1918%2Fblogpostapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falessandro1918%2Fblogpostapi/lists"}