{"id":13454338,"url":"https://github.com/cdbrw/bun-elysia-drizzle-base","last_synced_at":"2025-09-07T04:36:42.204Z","repository":{"id":223217259,"uuid":"759616959","full_name":"cdbrw/bun-elysia-drizzle-base","owner":"cdbrw","description":"Base template for a Bun server using Elysia for routing and Drizzle ORM for a Postgres database","archived":false,"fork":false,"pushed_at":"2024-02-19T03:37:51.000Z","size":27,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T21:28:56.163Z","etag":null,"topics":[],"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/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-19T02:06:47.000Z","updated_at":"2025-04-20T13:04:17.000Z","dependencies_parsed_at":"2024-02-19T03:41:19.600Z","dependency_job_id":null,"html_url":"https://github.com/cdbrw/bun-elysia-drizzle-base","commit_stats":null,"previous_names":["thecodebrew/bun-elysia-drizzle-base","cdbrw/bun-elysia-drizzle-base"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/cdbrw/bun-elysia-drizzle-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdbrw%2Fbun-elysia-drizzle-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdbrw%2Fbun-elysia-drizzle-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdbrw%2Fbun-elysia-drizzle-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdbrw%2Fbun-elysia-drizzle-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdbrw","download_url":"https://codeload.github.com/cdbrw/bun-elysia-drizzle-base/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdbrw%2Fbun-elysia-drizzle-base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273997100,"owners_count":25204473,"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-09-07T02:00:09.463Z","response_time":67,"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":[],"created_at":"2024-07-31T08:00:53.195Z","updated_at":"2025-09-07T04:36:42.178Z","avatar_url":"https://github.com/cdbrw.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/xuXPu7?referralCode=codebrew)\n\n# Bun with Elysia \u0026 Drizzle\nThis is a template repo for the base of a Bun server using Elysia for the API and Drizzle ORM for a Postgres DB.\n\nYou can [deploy on Railway](https://railway.app/template/xuXPu7?referralCode=codebrew) or simply [create a new repo](https://github.com/thecodebrew/bun-elysia-drizzle-base/generate) using this template.\n\n## Development\n1. Install dependencies\n```\nbun install\n```\n2. Start a Docker container for the Postgres database\n```\ndocker run --name dev-postgres -p 5432:5432 -e POSTGRES_PASSWORD=12345678 -d postgres\n```\n\n3. Add the `DATABASE_URL` env variable to a _.env_ file\n```\nDATABASE_URL=\"postgresql://postgres:12345678@localhost:5432/postgres?schema=public\"\n```\n\n4. Add your tables to `src/db/schema/index.ts`.\n\n5. Generate migrations\n```shell\nbun run generate\n```\n\n6. Run migrations \n```shell\nbun run migrate\n```\n\n7. To start the development server run:\n```bash\nbun run dev\n```\nOpen http://localhost:3000/ with your browser to see the result.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdbrw%2Fbun-elysia-drizzle-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdbrw%2Fbun-elysia-drizzle-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdbrw%2Fbun-elysia-drizzle-base/lists"}