Skip to content

Nipa-Dev/forkbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forkbook

Self-hosted recipe and cooking notebook

Quick Start with Podman

The easiest way to get started is using the podman-compose.yaml

  1. Set up environment variables

Create a .env file in the project root:

Create a secret key: openssl rand -hex 32

POSTGRES_USER=admin
POSTGRES_PASSWORD=admin
POSTGRES_DB=recipebook

SECRET_KEY="SECRET-KEY"
REFRESH_SECRET_KEY="ANOTHER-SECRET-KEY"
ALGORITHM="HS256"
ACCESS_TOKEN_EXPIRE_MINUTES=30

EMAIL_BIDX_SECRET="YET-ANOTHER-SECRET-KEY"
  1. Start the PostgreSQL database
podman compose up -d
  1. Run the backend
cd backend
uv run run.py

The API will be available at http://localhost:8000

  1. Install and run the frontend
cd frontend
pnpm install
pnpm run dev

The application will be available at http://localhost:5173

To create a new user, navigate to http://localhost:5173/signup

Environment Variables

See backend/app/utils/config.py for additional configuration options.

Development

Formatting (Backend)

ruff format .

Linting and Formatting (Frontend)

cd frontend
pnpm run lint
pnpm run format

License

See LICENSE file for details.

About

Forkbook - self-hosted recipe and cooking notebook built with SvelteKit, FastAPI, and PostgreSQL

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors