- Drizzle ORM
- Hono
-
Install Bun and Docker.
-
Clone the repository:
git clone https://github.com/hack-the-6ix/new.api.hackthe6ix.com.git -
Navigate into the project:
cd new.api.hackthe6ix.com -
Install dependencies:
bun install -
Create the environment file:
cp .env.example .env -
Start Postgres + API:
docker compose upAlternative:
- Start only the database:
docker compose up db - Run the API separately:
bun run dev
- Start only the database:
-
Apply database schema:
bunx drizzle-kit migrate -
(Optional) Seed the database:
bun run db:seed- To reset and reseed:
bun run db:seed --reset(DEV ONLY)
- To reset and reseed:
- Use the Drizzle Kit CLI to interact with the database: https://orm.drizzle.team/docs/kit-overview
bunx drizzle-kit studiois quite nice
- Available at the
/docsendpoint. - Reference for documenting endpoints: https://hono.dev/examples/hono-openapi