Skip to content

JBthePenguin/FarmManagement

Repository files navigation

Build Status

Farm Management

A tool to manage a farm

Install

Application, virtual environment and requirements

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

Tables

Make the migrations:

(env)$ python manage.py makemigrations
(env)$ python manage.py migrate

Admin site

Create a "superuser" account:

(env)$ python manage.py createsuperuser

Using

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.

Tests

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

About

Tool to manage a farm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published