Simple inventory management for your home
|
||
---|---|---|
.forgejo/workflows | ||
.husky | ||
.vscode | ||
bruno/Lednice API | ||
prisma | ||
src | ||
tests | ||
.gitignore | ||
biome.json | ||
bun.lockb | ||
bunfig.toml | ||
package.json | ||
README.md | ||
sonar-project.properties | ||
tsconfig.json |
Lednice
Simple inventory management for your home
Setting up a development environment
- Install the bun runtime
- Clone the repo
git clone https://git.mnau.xyz/hernik/lednice
cd lednice
- Install dependencies
bun install
- 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
- 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"
- Run database migrations
bunx prisma migrate dev
- Run the app
bun run dev