A tool to manage a farm
Clone the folder, go inside, create a virtual environment for Python with virtualenv (!!! maybe you have to install virtualenv !!!), activate it and install all necessary dependencies (django, django-debug-toolbar, django-money, django-mathfilters, selenium):
$ git clone https://github.com/JBthePenguin/FarmManagement.git
$ cd FarmManagement
$ virtualenv -p python3 env
$ source env/bin/activate
(env)$ pip install -r requirements.txt
Make the migrations:
(env)$ python manage.py makemigrations
(env)$ python manage.py migrate
Create a "superuser" account:
(env)$ python manage.py createsuperuser
Start the server:
(env)$ python manage.py runserver
NOW, with your favorite browser, go to this url http://127.0.0.1:8000/ to use the application and http://127.0.0.1:8000/admin/ for the admin site.
The tests use selenium and maybe you have to install GreckoWebdriver to use firefox. Run the tests:
(env)$ python manage.py test -v 2
If you want to use Chrome, install ChromeWebDriver and update in all app's tests.py line 2:
from selenium.webdriver.chrome.webdriver import WebDriver