If you're looking to install wger, an open-source fitness manager, on your macOS, this tutorial will guide you through the process step-by-step.
Before you start, make sure you have the following:
$ brew install wger
This will install wger, and all its dependencies will be installed via Homebrew.
$ python3 -m venv wger-venv
This will create a virtual environment for your wger installation to ensure that it runs smoothly.
$ source wger-venv/bin/activate
$ brew install postgresql
$ initdb /usr/local/var/postgres
$ postgres -D /usr/local/var/postgres
$ createdb -O YOUR_USERNAME wger
$ createdb -O YOUR_USERNAME wger_scheduled
Make sure to replace YOUR_USERNAME with your macOS username.
$ cd $(brew --prefix)/Cellar/wger/<version>/libexec/
Replace <version>
with the current version of wger installed.
$ pip install -r requirements.txt
Edit the configuration file using the following command:
$ nano wger/settings.py
Update the DATABASES settings to match the user and password you used for your PostgreSQL database.
Save the changes and close the configuration file.
$ python manage.py runserver
Congratulations, you're all set up with wger on your macOS!
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!