{"id":22557996,"url":"https://github.com/jd-apprentice/jd-bun","last_synced_at":"2026-04-19T02:31:16.087Z","repository":{"id":246731977,"uuid":"821993685","full_name":"jd-apprentice/jd-bun","owner":"jd-apprentice","description":"🧅 Template repository for my bun projects","archived":false,"fork":false,"pushed_at":"2024-08-15T03:37:35.000Z","size":186,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T02:51:20.746Z","etag":null,"topics":["bun","template"],"latest_commit_sha":null,"homepage":"https://bun-template.jonathan.com.ar","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jd-apprentice.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-30T02:27:10.000Z","updated_at":"2024-11-09T01:39:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"e903b545-6b4b-4fbc-abf1-8a4d7c19c18d","html_url":"https://github.com/jd-apprentice/jd-bun","commit_stats":null,"previous_names":["jd-apprentice/jd-bun"],"tags_count":9,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Fjd-bun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Fjd-bun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Fjd-bun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Fjd-bun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jd-apprentice","download_url":"https://codeload.github.com/jd-apprentice/jd-bun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246020191,"owners_count":20710704,"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":["bun","template"],"created_at":"2024-12-07T20:10:33.495Z","updated_at":"2026-04-19T02:31:11.062Z","avatar_url":"https://github.com/jd-apprentice.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧅 Bun template\n\n[![All Contributors](https://img.shields.io/github/all-contributors/jd-apprentice/jd-bun?color=ee8449\u0026style=flat-square)](#contributors)\n\nSample bun template with Turso DB, eslint, prettier, docker, husky, sonarjs, testing with coverage, and more.\n\n## 📚 Features\n\n- ✅ [Turso](https://turso.tech)\n- ✅ [Kysely](https://www.kysely.dev/)\n- ✅ [Eslint](https://eslint.org/)\n- ✅ [eslint-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs)\n- ✅ [eslint-plugin-security](https://github.com/eslint-community/eslint-plugin-security)\n- ✅ [Prettier](https://prettier.io/)\n- ✅ [Husky](https://typicode.github.io/husky/)\n- ✅ [Esdoc](https://esdoc.org/)\n- ✅ [CodeQL](https://codeql.github.com/)\n- ✅ [Joi](https://joi.dev/)\n- ✅ [Sentry](https://sentry.io/)\n- ✅ Jsconfig with checkjs and strict\n- ✅ Docker ready\n- ✅ Bun ready\n- ✅ Bun testing with coverage\n- ✅ Path aliases\n- ✅ Types\n\n## 🧰 Requirements\n\n- Bun (^1.1.13)\n- Docker (optional)\n\n## 💾 Instalation\n\nTo install BUN, do the following:\n\n```shell\ncurl -fsSL https://bun.sh/install | bash\n```\n\nNow we are going to do a bun create with this template.\n\nJust in case, here are additiona flags for the bun create command:\n\n```shell\n--force\tOverwrite existing files\n--no-install\tSkip installing node_modules \u0026 tasks\n--no-git\tDon’t initialize a git repository\n--open\tStart \u0026 open in-browser after finish\n```\n\n```shell\nmkdir your_app\nbun create github.com/jd-apprentice/jd-bun your_app\ncd your_app\ncp .env.example .env\n```\n\nMake sure to complete the `.env` file with the following information:\n\n| Variable | Description |\n| --- | --- |\n| TURSO_URL | Turso url |\n| TURSO_DB_TOKEN | Turso db token |\n\nChange the default names with the following script:\n\n```bash\nbun run replace     \n$ bash ./scripts/app_name.sh\nEnter the new name: sample\nReplacement completed. 🚀\n```\n\nThis will replace all `app_name` with `sample` in the project.\n\n### Run with Bun 🧅\n\n```bash\nmake\n```\n\nThis will build the app with bunjs and execute the binary.\n\n### Run with Docker 🐳\n\nBun still needs to be installed to build the binary.\n\n1. Prepare the binary\n\n```bash\nbun install\nbun test (optional)\nbun run build\n```\n\n2. Build the image manually\n\nRemember to replace `app_name` with the name of your app.\n\n```bash\ndocker build -f docker/base-x86_64.Dockerfile -t app_bin .\ndocker build -f docker/app.Dockerfile -t app_name .\ndocker compose up -d\n```\n\n## 🤝 Contribute\n\n- For more information, check the [CONTRIBUTE](./CONTRIBUTE.md) file\n\n## ✨ Contributors \n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://jonathan.com.ar/es\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/68082746?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJonathan Dyallo\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/jd-apprentice/waifuland-api/commits?author=jd-apprentice\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/jd-apprentice/waifuland-api/commits?author=jd-apprentice\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"https://github.com/jd-apprentice/waifuland-api/commits?author=jd-apprentice\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#maintenance-jd-apprentice\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-apprentice%2Fjd-bun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjd-apprentice%2Fjd-bun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-apprentice%2Fjd-bun/lists"}