{"id":28308949,"url":"https://github.com/devjpmello/api-nestjs-com-prisma-orm-postgresql","last_synced_at":"2026-04-12T12:45:33.558Z","repository":{"id":294757376,"uuid":"987937757","full_name":"devJPMello/API-NestJS-com-Prisma-ORM-PostgreSQL","owner":"devJPMello","description":"Atividade com API Nest.JS + Prisma ORM + PostgreSQL","archived":false,"fork":false,"pushed_at":"2025-05-21T22:14:12.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T19:30:13.942Z","etag":null,"topics":["neondb","nestjs","postgresql","prisma-orm"],"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/devJPMello.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-21T20:13:23.000Z","updated_at":"2025-05-21T22:14:15.000Z","dependencies_parsed_at":"2025-05-21T23:25:33.751Z","dependency_job_id":"0a0be5fc-d442-4910-841d-c15d0159108a","html_url":"https://github.com/devJPMello/API-NestJS-com-Prisma-ORM-PostgreSQL","commit_stats":null,"previous_names":["devjpmello/api-nestjs-com-prisma-orm-postgresql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devJPMello/API-NestJS-com-Prisma-ORM-PostgreSQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devJPMello%2FAPI-NestJS-com-Prisma-ORM-PostgreSQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devJPMello%2FAPI-NestJS-com-Prisma-ORM-PostgreSQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devJPMello%2FAPI-NestJS-com-Prisma-ORM-PostgreSQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devJPMello%2FAPI-NestJS-com-Prisma-ORM-PostgreSQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devJPMello","download_url":"https://codeload.github.com/devJPMello/API-NestJS-com-Prisma-ORM-PostgreSQL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devJPMello%2FAPI-NestJS-com-Prisma-ORM-PostgreSQL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261394974,"owners_count":23152316,"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":["neondb","nestjs","postgresql","prisma-orm"],"created_at":"2025-05-24T09:09:02.013Z","updated_at":"2026-04-12T12:45:33.553Z","avatar_url":"https://github.com/devJPMello.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📚 API NestJS - ClasseDeAula e Aluno\n\nAPI RESTful desenvolvida com NestJS, Prisma ORM e PostgreSQL (NeonDB), com dois domínios principais:\n\n- **ClasseDeAula**: nome e descrição\n- **Aluno**: nome, e-mail e vínculo com uma classe\n\n---\n\n## 🚀 Tecnologias\n\n- [NestJS](https://nestjs.com/)\n- [Prisma ORM](https://www.prisma.io/)\n- [PostgreSQL (NeonDB)](https://neon.tech/)\n- [TypeScript](https://www.typescriptlang.org/)\n\n---\n\n## ⚙️ Instalação\n\n1. Clone o repositório:\n\n```bash\ngit clone https://github.com/devJPMello/API-NestJS-com-Prisma-ORM-PostgreSQL\n```\n\n2. Instale as dependências:\n\n```bash\nnpm install\n```\n\n3. Configure a variável de ambiente no arquivo `.env`:\n\n```\nDATABASE_URL=\"postgresql://USUARIO:SENHA@HOST/neondb?sslmode=require\"\n```\n\n---\n\n## 🛠️ Migrations e Seed\n\n1. Crie o banco de dados e rode as migrations:\n\n```bash\nnpx prisma migrate dev --name init\n```\n\n2. Popule o banco com dados iniciais:\n\n```bash\nnpx prisma db seed\n```\n\n---\n\n## ▶️ Rodando a aplicação\n\n```bash\nnpm run start:dev\n```\n\nServidor disponível por padrão em:  \n👉 `http://localhost:3000`\n\n---\n\n## 📌 Endpoints\n\n### ClasseDeAula\n\n- `POST /classe`: criar nova classe  \n- `GET /classe`: listar todas as classes\n\n### Aluno\n\n- `POST /aluno`: criar aluno vinculado a uma classe  \n- `GET /aluno`: listar todos os alunos com nome da classe\n\n---\n\n## 🧼 Resetar base de dados\n\nDurante desenvolvimento, para resetar os dados:\n\n```ts\nawait prisma.aluno.deleteMany();\nawait prisma.classeDeAula.deleteMany();\n```\n\nEssas linhas já estão incluídas no `prisma/seed.ts`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevjpmello%2Fapi-nestjs-com-prisma-orm-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevjpmello%2Fapi-nestjs-com-prisma-orm-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevjpmello%2Fapi-nestjs-com-prisma-orm-postgresql/lists"}