Install bun
curl -fsSL https://bun.sh/install | bash # for macOS, Linux, and WSL
Create .env file:
cp .env.example .env
Install dependencies:
bun install
Create DB:
create user postgres with password 'postgres';
create database marketplace_starter_ts_dev;
grant all privileges on database marketplace_starter_ts_dev to postgres;
Generate DB bindings:
bun x prisma generate
Migrate DB:
bun migrate
Create new DB migration:
bunx prisma migrate dev --name nameofmigration
Run dev server:
bun dev
Lint code:
bun lint
This project was created using bun init
in bun v1.0.1. Bun is a fast all-in-one JavaScript runtime.