{"id":25637300,"url":"https://github.com/alnmaurofranco/liboftech-api-do-while2021","last_synced_at":"2026-04-12T06:31:46.190Z","repository":{"id":115165774,"uuid":"439144693","full_name":"alnmaurofranco/liboftech-api-do-while2021","owner":"alnmaurofranco","description":"Desafio do evento DoWhile 2021","archived":false,"fork":false,"pushed_at":"2023-12-15T17:48:39.000Z","size":104,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T05:33:12.208Z","etag":null,"topics":["docker","expressjs","nodejs","postgresql","prisma","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/alnmaurofranco.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":"2021-12-16T22:34:52.000Z","updated_at":"2021-12-22T06:52:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"85e36f52-2d98-41e2-9aa6-4fac64e7d11d","html_url":"https://github.com/alnmaurofranco/liboftech-api-do-while2021","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alnmaurofranco/liboftech-api-do-while2021","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alnmaurofranco%2Fliboftech-api-do-while2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alnmaurofranco%2Fliboftech-api-do-while2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alnmaurofranco%2Fliboftech-api-do-while2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alnmaurofranco%2Fliboftech-api-do-while2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alnmaurofranco","download_url":"https://codeload.github.com/alnmaurofranco/liboftech-api-do-while2021/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alnmaurofranco%2Fliboftech-api-do-while2021/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272214419,"owners_count":24893201,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"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":["docker","expressjs","nodejs","postgresql","prisma","typescript"],"created_at":"2025-02-23T01:20:23.496Z","updated_at":"2025-10-15T20:56:58.293Z","avatar_url":"https://github.com/alnmaurofranco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n🎓 LibOFTechAPI\n\u003c/h1\u003e\n\n## 👨‍💻 Padrão de Projeto\n\n* [S.O.L.I.D](https://medium.com/thiago-aragao/solid-princ%C3%ADpios-da-programa%C3%A7%C3%A3o-orientada-a-objetos-ba7e31d8fb25) - Princípios da Programação Orientada a Objetos\n* [Clean Code](https://balta.io/artigos/clean-code) - Clean Code  \n* [Clean Architecture](https://medium.com/luizalabs/descomplicando-a-clean-architecture-cf4dfc4a1ac6) - Clean Architecture\n\n## 🚀 Tecnologias\nEsse projeto foi desenvolvido com as seguintes tecnologias:\n* [Node.js](https://nodejs.org/en/) - A JavaScript runtime built on Chrome's V8 JavaScript engine.\n* [Typescript](https://www.typescriptlang.org/) - Typed JavaScript at Any Scale.\n* [Express.js](http://expressjs.com/) - Fast, unopinionated, minimalist web framework for Node.js\n* [Prisma](https://prisma.io/) - Next-generation Node.js and TypeScript ORM\n* [PostgreSQL](https://www.postgresql.org/) - The World's Most Advanced Open Source Relational Database\n* [Docker](https://www.docker.com/) - Developers Love Docker. Businesses Trust It.\n\u003cp\u003e\n\u003cimg src=\"https://cdn.svgporn.com/logos/nodejs-icon.svg\" alt=\"nodejs\" width=\"30\" height=\"30\" style=\"margin-left: 5px;\"/\u003e\n\u003cimg src=\"https://cdn.svgporn.com/logos/express.svg\" alt=\"express\" width=\"30\" height=\"30\" style=\"margin-left: 5px;\"/\u003e\n\u003cimg src=\"https://cdn.svgporn.com/logos/typescript-icon.svg\" alt=\"typescript\" width=\"30\" height=\"30\" style=\"margin-left: 5px;\"/\u003e\n\u003cimg src=\"https://cdn.svgporn.com/logos/prisma.svg\" alt=\"prisma\" width=\"30\" heigth=\"30\" style=\"margin-right: 5px;\" /\u003e\n\u003cimg src=\"https://cdn.svgporn.com/logos/postgresql.svg\" alt=\"postgresql\" width=\"30\" height=\"30\" style=\"margin-left: 5px;\"/\u003e\n\u003cimg src=\"https://cdn.svgporn.com/logos/docker-icon.svg\" alt=\"docker\" width=\"30\" heigth=\"30\" style=\"margin-right: 5px;\" /\u003e\n\u003c/p\u003e\n\n## ✨ Funcionalidades\n- Autenticação do usuário com e-mail e senha ✅\n- Perfil de usuário ✅\n- Atualizar perfil de usuário ✅\n- Livro favorito do usuário ✅\n- Listar todos os livros ✅\n- Listar os top 5 livros mais visualizados ✅\n- Visualização do livro ✅\n- Inserção de novos livros pelo administrador ✅\n- Atualização de um livro pelo administrador ✅\n- Exclusão de livros pelo administrador ✅\n\n## 👨🏼‍💻 Como executar\nPara rodar este projeto é necessário ter [Node.js](https://nodejs.org/) instalado em sua maquina. Caso não tenha ainda basta acessar o site do [Node.js](https://nodejs.org/) e instalar para continuar.\n\n- Clone este repositório com comando\n```bash\ngit clone https://github.com/alnmaurofranco/liboftech-api-do-while2021\n```\n- Acesse a pasta do projeto\n```bash\ncd liboftech-api-do-while2021\n```\n### **🔥 Sem Docker**\n- Instale as dependências do projeto com (yarn ou npm) nesse exemplo estou usando **yarn**\n```bash\nyarn install\n```\n- Logo depois, você deve renomear o arquivo `.env.example` para `.env` que se encontra na raiz do projeto e modifique a variavel **DATABASE_URL** com suas configurações do seu banco de dados:\n\n```bash\nDATABASE_URL=\"postgresql://USER:PASS@HOST:PORT/DATABASE?schema=public\"\n```\n\n- Inicie a API com o comando:\n```bash\nyarn dev:server\n```\n\nE pronto agora API estára rodando e pode ser acessado em [`http://localhost:3333/api`](http://localhost:3333/api)\n\n### **🐳 Com Docker**\n- Subindo o container do projeto no Docker utilizando o comando abaixo:\n```bash\ndocker-compose up -d\n```\n- E depois de subir o container, você deve renomear o arquivo `.env.example` para `.env` que se encontra na raiz do projeto e modificar a variavel **DATABASE_URL** com as configurações abaixo:\n\n```bash\nDATABASE_URL=\"postgresql://docker:docker@api-database:5432/libdb?schema=public\"\n```\n\nE pronto sua API estára rodando com Docker e já pode ser acessado em [`http://localhost:3333/api`](http://localhost:3333/api)\n\n---\nFeito com 💚 by AlanM Franco","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falnmaurofranco%2Fliboftech-api-do-while2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falnmaurofranco%2Fliboftech-api-do-while2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falnmaurofranco%2Fliboftech-api-do-while2021/lists"}