Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add installation instructions
Roland Geider1dd9a3ec43f0
diff --git a/manager/locale/de/LC_MESSAGES/django.mo b/manager/locale/de/LC_MESSAGES/django.moindex f875d2fa2..f1d6430ea 100644Binary files a/manager/locale/de/LC_MESSAGES/django.mo and b/manager/locale/de/LC_MESSAGES/django.mo differdiff --git a/manager/locale/de/LC_MESSAGES/django.po b/manager/locale/de/LC_MESSAGES/django.poindex 5c259b1de..96b873106 100644--- a/manager/locale/de/LC_MESSAGES/django.po+++ b/manager/locale/de/LC_MESSAGES/django.po@@ -431,7 +431,7 @@ msgstr "Layout basiert auf <a href='http://www.yaml.de'>YAML</a>"#: templates/day/log.html:6 templates/day/log.html.py:21msgid "New weight log"-msgstr ""+msgstr "Neuer Logbucheintrag"#: templates/day/log.html:77msgid "Add exercises to this training day before adding a log."diff --git a/manager/static/css/yaml401/custom-yaml.css b/manager/static/css/yaml401/custom-yaml.cssindex a92be0bbe..4d72f812d 100644--- a/manager/static/css/yaml401/custom-yaml.css+++ b/manager/static/css/yaml401/custom-yaml.css@@ -155,3 +155,8 @@ footer{box-shadow: inset 0 0 4px #eee;}+++code{+ white-space: pre;+}diff --git a/software/templates/code.html b/software/templates/code.htmlindex 9084d1be0..0d1087b39 100644--- a/software/templates/code.html+++ b/software/templates/code.html@@ -44,5 +44,101 @@ right?.{% endblocktrans %}</p><h2>{% trans "Installation" %}</h2>-<pre>...</pre>+<p>{% blocktrans %}This is a Django application, so refer for details to its+<a href="https://docs.djangoproject.com/en/1.4/intro/install/">documentation page</a>+if things don't go as expected.</p>{% endblocktrans %}++<p>{% blocktrans %}In short, these are the steps to perform for an installation+on a <em>linux</em> machine, with python already installed. If you are using e.g.+Windows or OSX, take a look at the link above.</p>{% endblocktrans %}++<p>{% blocktrans %}I personally like installing my development+files on a virtualenv, it helps keep the system more or less clean and are very+easy to set up, but you can skip this step if you don't mind installing all+dependencies system-wide (in that case, install django and reportlab with a+<code>sudo apt-get install</code>).{% endblocktrans %}</p>++<code>+$ sudo apt-get install python-virtualenv+$ sudo apt-get install python-dev+$ mkdir manager+$ cd manager+$ virtualenv python-django+$ source python-django/bin/activate+$ pip install django+$ pip install reportlab+$ pip install django-browserid+$ pip install django-recaptcha+$ python+</code>++<p>{% blocktrans %}Try to import the packages to see if everything+works.{% endblocktrans %}</p>++<code>+>>> import django+>>> import reportlab+</code>++<p>{% blocktrans %}If the import worked, everything is set up. Now let's install+the application itself. Get the code by either downloading a package or cloning+the repository and updating to a tag or revision.{% endblocktrans %}</p>++<code>+$ hg clone https://[email protected]/rolandgeider/workout_manager+$ cd workout_manager/workout_manager+$ cp settings.sample.py settings.py+</code>+++<p>{% blocktrans %}Edit settings.py, setting the type of database you want to use.+The fastest to set up is Sqlite, but you can use whatever Django supports.+Initialise the database and create a super user.{% endblocktrans %}</p>++<code>+$ cd ..+$ python manage.py syncdb+</code>++<p>{% blocktrans %}This application uses reCaptcha to avoid registration+spam, for this you need to add your public and private keys to+settings.py.{% endblocktrans %}</p>++<code>+RECAPTCHA_PUBLIC_KEY = ''+RECAPTCHA_PRIVATE_KEY = ''+</code>++<p>{% blocktrans %}Also set the secret key used for user salt,+<code>SECRET_KEY</code>.{% endblocktrans %}</p>++<p>{% blocktrans %}Now you are ready to go, the application is installed and+can be used. However, an application like this without data is not interesting,+so you should load some initial data to populate the categories,+etc.{% endblocktrans %}</p>++<p>{% blocktrans %}For this, load these fixtures, <em>in this order</em>,+as some dependend on each other (specially the languages). The ingrediens fixture+can take some time to process, it contains more than 8000 entries.{% endblocktrans %}</p>+++<code>+$ python manage.py loaddata languages+$ python manage.py loaddata days_of_week+$ python manage.py loaddata muscles+$ python manage.py loaddata categories+$ python manage.py loaddata exercises+$ python manage.py loaddata ingredients+</code>++<p>{% blocktrans %}Now, run the server:{% endblocktrans %}</p>++<code>+$ python manage.py runserver+</code>++<p>{% blocktrans %}You can now access the site with your browser:+<code>http://localhost:8000/</code>{% endblocktrans %}</p>++{% endblock %}diff --git a/software/templates/license.html b/software/templates/license.htmlindex 530e723f9..f933998e8 100644--- a/software/templates/license.html+++ b/software/templates/license.html@@ -10,17 +10,15 @@<h2>{% trans "License" %}</h2>-<p>{% blocktrans %}wger Workout Manager is Free/Libre Open Source Software (FLOSS).-{% endblocktrans %}</p>+<p>{% blocktrans %}wger Workout Manager is Free/Libre Open Source+Software (FLOSS).{% endblocktrans %}</p><p>{% blocktrans %}wger Workout Manager steht unter der Affero GNU General Public License(AGPL) Version 3+ und darf ohne Restriktionen (unter den Bedingungen der Lizenz)-benutzt, verändert und (geändert) weitergegeben werden.-{% endblocktrans %}</p>+benutzt, verändert und (geändert) weitergegeben werden.{% endblocktrans %}</p>-<p>{% blocktrans %}Eine Kopie der Lizenz liegt jedem OpenSlides-Release bei und ist-auch in der LICENSE-Datei im Quellcode-Repository nachzulesen.-{% endblocktrans %}</p>+<p>{% blocktrans %}Eine Kopie der Lizenz liegt jedem wger Workout Manager-Release bei und ist+auch in der LICENSE-Datei im Quellcode-Repository nachzulesen.{% endblocktrans %}</p>