How to install Baby Buddy on Fedora Server Latest?

Baby Buddy is an open-source web app designed to help parents track their child's development and keeping up with their routines. This tutorial will guide you through the steps needed to install Baby Buddy on the latest version of Fedora Server.

Prerequisites

Step 1: Install Required Dependencies

Start by updating the system repositories and installing the necessary dependencies.

sudo dnf update
sudo dnf install python3-pip python3-virtualenv git postgresql-server postgresql-contrib

Configure PostgreSQL by initializing the PostgreSQL database cluster:

sudo postgresql-setup-initdb

Start and enable the PostgreSQL service:

sudo systemctl start postgresql
sudo systemctl enable postgresql

Step 2: Create a User and Database for Baby Buddy

Create a new PostgreSQL user and database for Baby Buddy.

sudo su postgres
psql

Create a new database and user with the database owner as the new user.

CREATE DATABASE babybuddy;
CREATE USER babybuddy WITH PASSWORD 'password';
ALTER ROLE babybuddy SET client_encoding TO 'utf8';
ALTER ROLE babybuddy SET default_transaction_isolation TO 'read committed';
ALTER ROLE babybuddy SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE babybuddy TO babybuddy;

Exit out of the psql shell.

\q
exit

Step 3: Clone the Baby Buddy Repository

Clone the Baby Buddy GitHub repository by running the following command:

git clone https://github.com/babybuddy/babybuddy.git

Step 4: Set Up the Python Environment

Create a new virtual environment for Baby Buddy:

cd babybuddy
python3 -m venv .venv
source .venv/bin/activate

Install the required Python packages using Pip:

pip install -r requirements.txt

Step 5: Configure Baby Buddy

Copy the example configuration file and update it with your settings:

cp .env.example .env
nano .env

Update the SECRET_KEY and ALLOWED_HOSTS variables. Set the DATABASE_URL variable to the PostgreSQL database you created in step 2.

Example .env file:

SECRET_KEY='my_secret_key'
DEBUG=True
ALLOWED_HOSTS='localhost'
DATABASE_URL='postgres://babybuddy:password@localhost:5432/babybuddy'

Step 6: Create the Database Tables

Migrate the database tables for Baby Buddy:

./manage.py migrate

Create an admin user:

./manage.py createsuperuser

Step 7: Run Baby Buddy

Run the Baby Buddy server:

./manage.py runserver

Open your browser and navigate to http://localhost:8000. You should see the Baby Buddy login page.

Log in with the username and password you created in Step 6.

Congratulations! You have successfully installed Baby Buddy on Fedora Server Latest. You can now start tracking your child's development and routines.

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!