{"id":24438766,"url":"https://github.com/ezeparziale/nextjs-api-template","last_synced_at":"2026-04-14T15:33:22.516Z","repository":{"id":251117189,"uuid":"836437184","full_name":"ezeparziale/nextjs-api-template","owner":"ezeparziale","description":":rocket: Next.js API Template","archived":false,"fork":false,"pushed_at":"2024-09-07T18:43:51.000Z","size":263,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T13:18:51.154Z","etag":null,"topics":["nextjs","prisma","swagger","zod","zod-openapi"],"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/ezeparziale.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-07-31T21:07:44.000Z","updated_at":"2025-12-12T01:55:22.000Z","dependencies_parsed_at":"2024-09-07T20:11:27.830Z","dependency_job_id":null,"html_url":"https://github.com/ezeparziale/nextjs-api-template","commit_stats":null,"previous_names":["ezeparziale/nextjs-api-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ezeparziale/nextjs-api-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezeparziale%2Fnextjs-api-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezeparziale%2Fnextjs-api-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezeparziale%2Fnextjs-api-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezeparziale%2Fnextjs-api-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezeparziale","download_url":"https://codeload.github.com/ezeparziale/nextjs-api-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezeparziale%2Fnextjs-api-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31803436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["nextjs","prisma","swagger","zod","zod-openapi"],"created_at":"2025-01-20T19:17:41.166Z","updated_at":"2026-04-14T15:33:22.497Z","avatar_url":"https://github.com/ezeparziale.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :rocket: Next.js API Template\n\nA boilerplate template for building APIs with Next.js, featuring schema validation and\nOpenAPI documentation.\n\n- [x] API with basic operations: POST/GET/PUT/PATCH/DELETE\n- [x] OpenAPI schema\n- [x] Validation of request bodies with Zod\n- [x] Validation of query parameters with Zod\n- [x] OpenAPI schema generation with `zod-openapi`\n- [x] Swagger docs\n- [x] Token-based authorization\n\n## :floppy_disk: Installation\n\n1. Clone this repo:\n\n```http\ngit clone https://github.com/ezeparziale/nextjs-api-template.git\n```\n\n2. Navigate to the project directory:\n\n```bash\ncd nextjs-api-template\n```\n\n3. Install dependencies:\n\n```bash\nnpm i\n```\n\n4. Create a `.env` file by copying the `.env.template` file and updating it with your\n   environment variables.\n\n5. Run migrations to initialize the database:\n\n```bash\nnpx prisma migrate deploy\n```\n\n6. Start the application:\n\n```bash\nnpm run dev\n```\n\n7. Go to:\n\n```http\nhttp://localhost:3000\n```\n\n## :page_facing_up: API Docs\n\n```http\nhttp://localhost:3000/api/openapi\n```\n\n```http\nhttp://localhost:3000/api/docs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezeparziale%2Fnextjs-api-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezeparziale%2Fnextjs-api-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezeparziale%2Fnextjs-api-template/lists"}