Skip to content

Latest commit

 

History

History
38 lines (34 loc) · 621 Bytes

README.md

File metadata and controls

38 lines (34 loc) · 621 Bytes

Lunchbox

Running the application

Server

The server uses the bun runtime. See bun.sh for installation instructions.

  1. cd server
  2. Install dependencies:
bun i
  1. 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]
  1. Create the database you just named.
  2. Run migrations:
bun migrate:up
  1. Run with bun dev

Client

  1. cd client
  2. Provide the backend url in .env
PUBLIC_BACKEND_URL=http://localhost:3000
  1. Run
npm i
npm run dev