Some checks are pending
Deploy to Production / deploy (push) Waiting to run
- Hono server with CORS and logging middleware - Drizzle ORM with PostgreSQL schema (users table) - Environment config with Zod validation - Dockerfile for production deployment - Gitea Actions workflows for dev/main deployment to Coolify - Health check route
1.5 KiB
1.5 KiB
Default to using Bun instead of Node.js.
- Use
bun <file>instead ofnode <file>orts-node <file> - Use
bun testinstead ofjestorvitest - Use
bun build <file.html|file.ts|file.css>instead ofwebpackoresbuild - Use
bun installinstead ofnpm installoryarn installorpnpm install - Use
bun run <script>instead ofnpm run <script>oryarn run <script>orpnpm run <script> - Use
bunx <package> <command>instead ofnpx <package> <command> - Bun automatically loads .env, so don't use dotenv.
Project: ImportEx API
Backend API using Hono + Drizzle ORM + PostgreSQL
Structure
src/index.ts- Entry point (Hono server)src/db/- Drizzle ORM setup and schemassrc/routes/- Route handlerssrc/middleware/- Hono middlewaresrc/config/- Configurationdrizzle/- Migration files
Commands
bun run dev- Start development server with hot reloadbun run typecheck- Run TypeScript type checkingbun run db:generate- Generate Drizzle migrationsbun run db:migrate- Run Drizzle migrations
Environment
devbranch → deploys to api.dev.globalimex.onlinemainbranch → deploys to api.globalimex.online
Coolify Deployment
- Uses Gitea Actions (
.gitea/workflows/) - Coolify API: https://admin237coolifyprivate.globalimex.online/api/v1
- Deploys via webhook on push to
devormain
Testing
Use bun test to run tests.
Lint/Typecheck
bun run typecheck- Run TypeScript type checking