How to Install Mealie on Debian Latest?

Mealie is an open-source recipe management system that allows you to store, organize and share your favorite recipes with others. It's written in Python and comes with a user-friendly web interface.

This tutorial will guide you through the process of installing Mealie on Debian Latest.

Prerequisites

Before you begin, make sure you have the following:

Step 1: Install Required Packages

To install Mealie, you need to install some required packages on your system. Run the following commands to install them:

sudo apt-get update
sudo apt-get install python3-pip python3-venv python3-dev libssl-dev libffi-dev libpq-dev

Step 2: Create a Virtual Environment for Mealie

It's always recommended to create a virtual environment before installing any Python package. This way, you can isolate your packages from the global Python environment and avoid any version conflicts.

Run the following commands to create a virtual environment for Mealie:

python3 -m venv mealie_env
source mealie_env/bin/activate

Step 3: Install Mealie

Once you've activated the virtual environment, you can install Mealie using pip:

pip install mealie

Step 4: Initialize the Database

Before you start using Mealie, you need to initialize the database. Run the following command to do so:

mealie initdb

This will create a new SQLite database in the mealie_env directory.

Step 5: Configure Mealie

Mealie uses a configuration file located in the ~/.config/mealie/ directory. You can create this directory if it doesn't exist and then copy the default configuration file to it:

mkdir -p ~/.config/mealie/
cp `python3 -m mealie.config` ~/.config/mealie/config.yaml

You can then edit this configuration file to customize the Mealie settings, such as changing the database URL or setting up authentication.

Step 6: Run Mealie

Finally, you can start the Mealie server by running the following command:

mealie serve

This will start the server on port 9000 by default. You can access the web interface by opening a web browser and navigating to http://localhost:9000.

Congratulations! You've successfully installed Mealie on your Debian Latest machine. You can now use it to manage your favorite recipes.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!