To install dependencies:
bun install
This project uses PostgreSQL. Prisma (v5.19.0) is the ORM library used to query and store data into the db . So, install prisma globally:
bun i -g [email protected]
After that, you have to setup youn db
Run:
prisma db push
It will generate prisma client and generate all the tables in the db.
Then, seed the db
bun seeds/seed-users.ts
To run:
bun run index.ts
# or
bun run devThis project was created using bun init in bun v1.1.3. Bun is a fast all-in-one JavaScript runtime.
Docker file generated with
bunx --bun @flydotio/dockerfile@latestthen used the flyctl secrets command to add envs, see sample.env for variables reference.
fly secrets set DATABASE_URL=postgres://example.com/mydb
fly secrets list