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.
python -m ensurepip --default-pip
in Command Prompt or PowerShell)Open Command Prompt or PowerShell.
Install Django by entering pip install Django
in the command line.
Install PostgreSQL by visiting https://www.postgresql.org/download/ and selecting Windows as your operating system. Follow the installation instructions.
After the installation of PostgreSQL, open pgAdmin4.
Create a new PostgreSQL database by right-clicking on the databases section and selecting "Create > Database".
Enter a name for the database (for example, "wger").
Click "Save" to create the new database.
Open a new Command Prompt or PowerShell window.
Enter pip install psycopg2-binary
in the command line to install the necessary database driver.
Clone the wger repository by entering git clone https://github.com/wger-project/wger.git
in the command line.
Navigate to the wger directory by entering cd wger
.
Install the required dependencies by entering pip install -r requirements.txt
in the command line.
Create a new file in the project directory called local_settings.py
.
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': '',
}
}
Replace <your_postgres_password>
with your actual PostgreSQL password.
Run the following commands to create the database tables:
python manage.py migrate
python manage.py createsuperuser
Follow the prompts to create a superuser account.
Start the server by entering python manage.py runserver
in the command line.
Open your web browser and go to http://localhost:8000/admin/
.
Log in with your superuser account.
You can now start using wger!
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!