{"id":15101786,"url":"https://github.com/cdbrw/bun-elysia-prisma-base","last_synced_at":"2025-05-07T03:46:21.532Z","repository":{"id":223055843,"uuid":"759200337","full_name":"cdbrw/bun-elysia-prisma-base","owner":"cdbrw","description":"Base template for a Bun server using Elysia for routing and Prisma as the ORM for a Postgres database","archived":false,"fork":false,"pushed_at":"2024-02-18T05:04:31.000Z","size":14,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T03:46:13.250Z","etag":null,"topics":["bunjs","elysiajs","prisma"],"latest_commit_sha":null,"homepage":"https://railway.app/template/ospb5B?referralCode=codebrew","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/cdbrw.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-02-17T23:18:30.000Z","updated_at":"2025-03-20T04:45:42.000Z","dependencies_parsed_at":"2024-02-21T00:45:16.642Z","dependency_job_id":null,"html_url":"https://github.com/cdbrw/bun-elysia-prisma-base","commit_stats":null,"previous_names":["thecodebrew/bun-elysia-prisma-base","cdbrw/bun-elysia-prisma-base"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdbrw%2Fbun-elysia-prisma-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdbrw%2Fbun-elysia-prisma-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdbrw%2Fbun-elysia-prisma-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdbrw%2Fbun-elysia-prisma-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdbrw","download_url":"https://codeload.github.com/cdbrw/bun-elysia-prisma-base/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810274,"owners_count":21807759,"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":["bunjs","elysiajs","prisma"],"created_at":"2024-09-25T18:40:36.254Z","updated_at":"2025-05-07T03:46:21.516Z","avatar_url":"https://github.com/cdbrw.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/ospb5B?referralCode=codebrew)\n\n# Bun with Elysia \u0026 Prisma\nThis is a template repo for the base of a Bun server using Elysia for the API and Prisma as the ORM for a Postgres DB.\n\nYou can [deploy on Railway](https://railway.app/template/ospb5B?referralCode=codebrew) or simply [create a new repo](https://github.com/thecodebrew/bun-elysia-prisma-base/generate) using this template.\n\n## Development\nInstall dependencies\n```bash\nbun install\n```\nStart a Docker container for the Postgres database\n```bash\ndocker run --name dev-postgres -p 5432:5432 -e POSTGRES_PASSWORD=12345678 -d postgres\n```\n\nAdd the `DATABASE_URL` env variable to a _.env_ file\n```dotenv\nDATABASE_URL=\"postgresql://postgres:12345678@localhost:5432/postgres?schema=public\"\n```\n\nTo start the development server run:\n```bash\nbun run dev\n```\nOpen http://localhost:3000/ with your browser to see the result.\n\n## Production\n1. Ensure the `DATABASE_URL` env variable is set to `${{Postgres.DATABASE_URL}}`\n2. Set custom build command to `bunx prisma migrate deploy` in order to run database migrations","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdbrw%2Fbun-elysia-prisma-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdbrw%2Fbun-elysia-prisma-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdbrw%2Fbun-elysia-prisma-base/lists"}