{"id":22463928,"url":"https://github.com/naufaldi/docker-elysia-simple","last_synced_at":"2025-10-07T11:51:54.361Z","repository":{"id":262954299,"uuid":"888889610","full_name":"naufaldi/docker-elysia-simple","owner":"naufaldi","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-22T17:46:18.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-28T01:20:14.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/naufaldi.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-11-15T07:47:47.000Z","updated_at":"2024-11-22T17:46:21.000Z","dependencies_parsed_at":"2025-03-27T14:42:08.312Z","dependency_job_id":"cad9cfbe-6380-4b0b-b0f2-c4a4ca31ee02","html_url":"https://github.com/naufaldi/docker-elysia-simple","commit_stats":null,"previous_names":["naufaldi/docker-elysia-simple"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/naufaldi/docker-elysia-simple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naufaldi%2Fdocker-elysia-simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naufaldi%2Fdocker-elysia-simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naufaldi%2Fdocker-elysia-simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naufaldi%2Fdocker-elysia-simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naufaldi","download_url":"https://codeload.github.com/naufaldi/docker-elysia-simple/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naufaldi%2Fdocker-elysia-simple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278770432,"owners_count":26042826,"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-10-07T02:00:06.786Z","response_time":59,"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-12-06T09:14:43.807Z","updated_at":"2025-10-07T11:51:54.330Z","avatar_url":"https://github.com/naufaldi.png","language":"TypeScript","readme":"# Elysia with Bun, Prisma, and Docker\n\nA learning project exploring modern TypeScript backend development with Bun runtime and Elysia framework.\n\n## 🚀 Tech Stack\n\n- **Runtime** : [Bun](https://bun.sh/) - Ultra-fast JavaScript runtime and toolkit\n- **Framework** : [Elysia](https://elysiajs.com/) - TypeScript HTTP framework for Bun\n- **Database** : PostgreSQL 16\n- **ORM** : Prisma - Next-generation Node.js and TypeScript ORM\n- **Containerization**: Docker \u0026 Docker Compose\n\n## 📋 Prerequisites\n\n- [Bun](https://bun.sh/) installed\n- [Docker](https://www.docker.com/) and Docker Compose\n- Basic understanding of TypeScript and REST APIs\n\n## 🗃️ Database Schema\n\n```prisma\nmodel Notes {\n  id        String   @id @default(cuid())\n  title     String\n  content   String\n  createdAt DateTime @default(now())\n  updatedAt DateTime @updatedAt\n}\n```\n\n## 🚀 Getting Started\n\n1. **Clone the repository**\n\n```bash\ngit clone https://github.com/naufaldi/docker-elysia-simple\ncd docker-elysia-simple\n```\n\n2. **Install dependencies**\n\n```bash\nbun install\n```\n\n3. **Start the Docker containers**\n\n```bash\ndocker compose up --build\n```\n\n4. **Run database migrations**\n\n```bash\nbunx prisma migrate dev\n```\n\n5. **Seed the database**\n\n```bash\nbun run seed\n```\n\n## 🛠️ Development\n\nThe application will be available at:\n\n- API: http://localhost:3000\n- Database: localhost:5433 (PostgreSQL)\n\n### Environment Variables\n\nCreate a `.env` file:\n\n```env\nDATABASE_URL=\"postgresql://postgres:postgres@localhost:5433/elysia-db\"\n```\n\n### Available Scripts\n\n- `bun run dev` - Start development server\n- `bun run seed` - Seed the database\n- `bunx prisma studio` - Open Prisma Studio\n\n## 🐳 Docker Configuration\n\nThe project uses Docker Compose for local development with two services:\n\n1. **App Service**\n\n   - Bun runtime\n   - Hot reload enabled\n   - Connected to PostgreSQL\n\n2. **Database Service**\n   - PostgreSQL 16\n   - Persistent volume storage\n   - Health checks enabled\n\n### Docker Commands\n\n```bash\n# Start services\ndocker compose up\n\n# Rebuild containers\ndocker compose up --build\n\n# Stop services\ndocker compose down\n\n# View logs\ndocker compose logs -f\n```\n\n## 📝 Learning Notes\n\n### Key Concepts Learned\n\n1. **Bun \u0026 Elysia Integration**\n\n   - Modern TypeScript HTTP framework\n   - Fast development workflow\n   - Type-safe API development\n\n2. **Prisma Setup**\n\n   - Schema definition\n   - Migration management\n   - Seeding strategies\n\n3. **Docker Development Environment**\n\n   - Multi-container setup\n   - Volume management\n   - Environment configuration\n   - Port mapping\n\n4. **Database Management**\n   - PostgreSQL configuration\n   - Connection handling\n   - Data persistence\n\n## 🤝 Contributing\n\nFeel free to submit issues and enhancement requests!\n\n## 📜 License\n\nThis project is [MIT](LICENSE) licensed.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaufaldi%2Fdocker-elysia-simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaufaldi%2Fdocker-elysia-simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaufaldi%2Fdocker-elysia-simple/lists"}