{"id":22514712,"url":"https://github.com/jdizm/bun-express","last_synced_at":"2026-05-09T00:02:05.688Z","repository":{"id":193919379,"uuid":"689609357","full_name":"JDIZM/bun-express","owner":"JDIZM","description":"A simple starter template for an API with bun, express, prisma and typescript.","archived":false,"fork":false,"pushed_at":"2023-09-13T22:55:33.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-08T00:45:15.306Z","etag":null,"topics":["api","backend","bun","express","prisma","template","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/JDIZM.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":"2023-09-10T11:13:30.000Z","updated_at":"2023-11-22T10:34:00.000Z","dependencies_parsed_at":"2025-02-02T03:26:23.403Z","dependency_job_id":null,"html_url":"https://github.com/JDIZM/bun-express","commit_stats":null,"previous_names":["jdizm/bun-express"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/JDIZM/bun-express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDIZM%2Fbun-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDIZM%2Fbun-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDIZM%2Fbun-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDIZM%2Fbun-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JDIZM","download_url":"https://codeload.github.com/JDIZM/bun-express/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDIZM%2Fbun-express/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32802533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["api","backend","bun","express","prisma","template","typescript"],"created_at":"2024-12-07T03:20:47.585Z","updated_at":"2026-05-09T00:02:05.646Z","avatar_url":"https://github.com/JDIZM.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bun-express\n\n\nA simple express api with bun.sh\n\nhttps://bun.sh/guides/ecosystem/express\n\n\n```bash\n# install bun\ncurl -fsSL https://bun.sh/install | bash\n\n# install dependencies\nbun install\n\n# run the dev server\nbun dev\n\n# build\nbun build:bun\n```\n\n### Env\n\nSet the bun environment to development or production in the `.env` file.\n\n\n```\nNODE_ENV=development\n```\n\nFor more info on how bun handles environments see:\n\n- https://bun.sh/docs/cli/run#environment-variables\n- https://bun.sh/guides/runtime/set-env\n\n\n### Testing\n\nsee the docs for the test runner: https://bun.sh/docs/cli/test\n\n```bash\nbun test\n```\n\n## Build with docker\n\n```bash\n# build the app\nbun build:bun\n\n# build with docker\ndocker build . --tag bun-express\n\n# start the docker container\ndocker run -d -p 3000:3000 bun-express\n\n# view it running on localhost\ncurl localhost:3000\n```\n\n## Database\n\nThis is currently setup to use MongoDB. If you would like to switch the provider then take a look at the [prisma docs](https://www.prisma.io/docs/concepts/components/prisma-schema/data-sources)\n\nYou can replace `DATABASE_URL` with your mongodb connection string whether that be cloud or locally hosted.\n\nNote: when using Prisma the MongoDB database connector uses transactions to support nested writes. Transactions require a replica set deployment. The easiest way to deploy a replica set is with Atlas. It's free to get started.\n\nhttps://www.prisma.io/docs/concepts/database-connectors/mongodb\n\n## Prisma\n\nhttps://bun.sh/guides/ecosystem/prisma\n\n\n### Generate schema\nYou will need to generate the models after you make changes to the schema.prisma file or the first time you run the app.\n\n```bash\nbunx prisma generate  \n```\n\n### Seed the database\n\n```bash\nbun seed\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdizm%2Fbun-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdizm%2Fbun-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdizm%2Fbun-express/lists"}