Back to services

Fork Recipes

Manage your food recipes with simplicity.

View alternatives to Fork Recipes
Suggest edit
Open source
Self-hostable
BSD-3-Clause
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Fork Recipes (fork.recipes) is the front-end client for ForkAPI, a recipe backend service. According to the official documentation, it is currently the only ready-made front end for ForkAPI. It is a web application written in Python (Django) that can be deployed with Docker. The front end works together with the backend API, letting users manage and search recipes in the browser.

Target Users and Use Cases

  • Users who want to store and manage recipes on their own server or home server
  • Individuals or families who don't want to hand their data over to third-party recipe platforms and value staying in control
  • Developers who already use ForkAPI and need a ready-made web interface

Key Features

  • One-step deployment of front end and back end: a single docker compose up command installs NGINX, the ForkAPI backend and the Fork.Recipes front end together, with no need to follow ForkAPI's separate installation instructions.
  • Optional HTTPS: you can use an SSL certificate for your own domain, or skip SSL. The latter suits local use or cases where the hosting provider already supplies a certificate.
  • NGINX reverse proxy: the front end and the backend API are reached through two separate domains, with the backend usually using a subdomain starting with api..
  • Can run locally: if you don't have a domain, you can point the domain and subdomain to 127.0.0.1 in /etc/hosts.
  • Adjustable search pagination: use PAGINATION_PAGE_SIZE to set the number of recipe search results per page.
  • Password reset: once SMTP is configured, passwords can be reset by email.

Installation and Deployment

  1. Copy .env.example in the repository to .env, then fill in the environment variables:
    • DJANGO_SECRET: the Django secret key, required
    • X_AUTH_HEADER: the authentication header used for front-end/back-end communication, required; a hard-to-guess value (such as a GUID) is recommended
    • SERVICE_BASE_URL: the address the front end uses to reach the backend; it must include http:// or https://
    • SMTP settings (EMAIL_HOST, etc.): used only for password resets, optional
    • DOMAIN_NAME_NGINX and DOMAIN_NAME_NGINX_API: the front-end and backend domains, without a protocol prefix
    • PAGINATION_PAGE_SIZE: the number of search results per page
  2. Without SSL: run docker compose up in the project root directory.
  3. With SSL: put fullchain.pem and privkey.pem in the nginx/ssl directory, modify the commented-out lines in docker-compose.yml as described in the documentation, then run docker compose up.
  4. Once deployment is complete, access the front end and the API admin interface through the configured domains.
  5. Accounts can't be registered through the interface; you need to create a superuser from the command line, following the ForkAPI documentation.

Technical Requirements

  • Docker and Docker Compose
  • A domain and a subdomain; for local use, you can simulate them with the hosts file
  • Optional: a valid SSL certificate and an SMTP mail service

Notes

  • The interface doesn't offer registration; accounts must be created by an administrator as superusers.
  • The backend can also use a different domain that isn't a subdomain of the front end's domain.
  • If you have questions, you can ask them in the project's GitHub repository.