How to Install Mealie on Windows 10

Mealie is a self-hosted recipe management system that allows you to store, organize, and share your recipes. In this tutorial, we will guide you on how to install Mealie on Windows 10.

Prerequisites

Step 1: Install Dependencies

Mealie requires some dependencies to be installed before it can be set up. Open the command prompt and run the following commands:

pip install pillow
pip install psycopg2-binary
pip install django
pip install djangorestframework
pip install markdown
pip install django-filter
pip install pyyaml

Step 2: Clone Mealie Repository

Go to the Mealie repository page https://github.com/hay-kot/mealie and click on the "Clone or download" button. Then copy the URL from the "Clone with HTTPs" field.

Open the command prompt and navigate to the directory where you want to download the Mealie files. Then type the following command:

git clone https://github.com/hay-kot/mealie.git

This will clone the Mealie repository to your local machine.

Step 3: Install Requirements

Navigate to the "mealie" directory in the command prompt and run the following command to install the required python packages:

pip install -r requirements.txt

Step 4: Set up the Database

Mealie uses PostgreSQL as its database. You need to install PostgreSQL and create a new database for Mealie. You can download PostgreSQL from https://www.postgresql.org/download/.

After installing PostgreSQL, create a new database for Mealie using the following commands in the PostgreSQL shell:

create database mealie_db;
create user mealie_user with encrypted password 'mysecretpassword';
grant all privileges on database mealie_db to mealie_user;

Step 5: Configure the Settings File

In the "mealie" directory, open the "mealie/settings.py" file in a text editor. Update the following settings:

ALLOWED_HOSTS = ['localhost']

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'mealie_db',
        'USER': 'mealie_user',
        'PASSWORD': 'mysecretpassword',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}

Step 6: Run Migrations

In the "mealie" directory, run the following command to create the database tables:

python manage.py migrate

Step 7: Create a Superuser

Run the following command to create a superuser for the Mealie admin panel:

python manage.py createsuperuser

Step 8: Run the Server

In the "mealie" directory, run the following command to start the server:

python manage.py runserver

You can now access Mealie in your web browser by visiting http://localhost:8000.

Congratulations! You have successfully installed Mealie on Windows 10.

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!