The server uses the bun runtime. See bun.sh for installation instructions.
cd server
- Install dependencies:
bun i
- Pass the database credentials in /server/.env and provide a JWT secret:
DB_NAME=lunchbox
DB_USER=admin
DB_PASS=admin
DB_HOST=127.0.0.1
JWT_SECRET=[SECRET HERE]
- Create the database you just named.
- Run migrations:
bun migrate:up
- Run with
bun dev
cd client
- Provide the backend url in .env
PUBLIC_BACKEND_URL=http://localhost:3000
- Run
npm i
npm run dev