Simple inventory management for your home
Find a file
Matyáš Caras 91ad080d69
All checks were successful
/ test (push) Successful in 1m59s
docs: update README
2024-08-19 18:04:09 +02:00
.forgejo/workflows ci: unshallow for sonar 2024-07-20 18:48:04 +02:00
.husky docs: update README 2024-08-19 18:04:09 +02:00
.vscode feat: add entry management 2024-07-26 17:25:56 +02:00
bruno/Lednice API feat: creating and listing fridges 2024-07-20 22:12:57 +02:00
prisma feat: add entry management 2024-07-26 17:25:56 +02:00
src lint: apply lint 2024-07-26 17:26:18 +02:00
tests lint: apply lint 2024-07-26 17:26:18 +02:00
.gitignore feat: create basic auth API 2024-07-20 18:18:48 +02:00
biome.json feat: create basic auth API 2024-07-20 18:18:48 +02:00
bun.lockb docs: update README 2024-08-19 18:04:09 +02:00
bunfig.toml feat: create basic auth API 2024-07-20 18:18:48 +02:00
package.json docs: update README 2024-08-19 18:04:09 +02:00
README.md docs: update README 2024-08-19 18:04:09 +02:00
sonar-project.properties ci: unshallow for sonar 2024-07-20 18:48:04 +02:00
tsconfig.json style: run lint 2024-07-20 18:30:01 +02:00

Lednice

Simple inventory management for your home

Setting up a development environment

  1. Install the bun runtime
  2. Clone the repo
git clone https://git.mnau.xyz/hernik/lednice
cd lednice
  1. Install dependencies
bun install
  1. Set up a PostgreSQL database

Tip

The easiest way is to spin up an instance using Docker. Try docker run --name my-postgres -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword -d postgres

  1. Set PostgreSQL URL in .env

The variable is named DATABASE_URL

Tip

If using the Docker setup above, you can set DATABASE_URL="postgresql://postgres:mysecretpassword@localhost:5432/postgres?schema=public"

  1. Run database migrations
bunx prisma migrate dev
  1. Run the app
bun run dev