Tutorial: How to install wger on Windows 10

wger is an open-source gym management application available for free on https://wger.de/. In this tutorial, we'll guide you through the process of installing wger on your Windows 10 operating system.

Prerequisites

Steps

  1. Open Command Prompt or PowerShell.

  2. Install Django by entering pip install Django in the command line.

  3. Install PostgreSQL by visiting https://www.postgresql.org/download/ and selecting Windows as your operating system. Follow the installation instructions.

  4. After the installation of PostgreSQL, open pgAdmin4.

  5. Create a new PostgreSQL database by right-clicking on the databases section and selecting "Create > Database".

  6. Enter a name for the database (for example, "wger").

  7. Click "Save" to create the new database.

  8. Open a new Command Prompt or PowerShell window.

  9. Enter pip install psycopg2-binary in the command line to install the necessary database driver.

  10. Clone the wger repository by entering git clone https://github.com/wger-project/wger.git in the command line.

  11. Navigate to the wger directory by entering cd wger.

  12. Install the required dependencies by entering pip install -r requirements.txt in the command line.

  13. Create a new file in the project directory called local_settings.py.

  14. Edit the local_settings.py file and add the following code:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'wger',
        'USER': 'postgres',
        'PASSWORD': '<your_postgres_password>',
        'HOST': 'localhost',
        'PORT': '',
    }
}
  1. Replace <your_postgres_password> with your actual PostgreSQL password.

  2. Run the following commands to create the database tables:

python manage.py migrate
python manage.py createsuperuser
  1. Follow the prompts to create a superuser account.

  2. Start the server by entering python manage.py runserver in the command line.

  3. Open your web browser and go to http://localhost:8000/admin/.

  4. Log in with your superuser account.

  5. You can now start using wger!

Conclusion

Congratulations! You have successfully installed wger on your Windows 10 operating system. If you encounter any issues during the installation process, feel free to consult the wger documentation or reach out to the wger community for support. Happy gym managing!

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!