Development

Note

This document describes steps how to setup minimal environment for development or testing purposes.

Windows

To setup minimal development environment on Windows, you will need:

  1. Install PyCharm (Community Edition is fine)
  2. Clone the dev repository:
git clone -b dev https://github.com/anthill-platform/anthill-dev.git
cd anthill-dev
git submodule update --init --recursive
  1. Run installation script
cd dev\win
setup.bat

This will install Scoop, and Scoop will install all of the required components.

  1. Open cloned repo in PyCharm.

  2. Setup the Project Interpreter.

    To do that, go to Preferences, select Project Interpreter, select Show All from the dropdown, hit “+”, select Add Local, and feed it with C:\Anthill\venv\Scripts\python.exe.

  3. Select all run configuration, hit Run

    _images/compound_configuration.png
  4. Open http://localhost:9500 in your browser

  5. Press “Proceed”, login using username root and password anthill. You should see something like this:

Mac OS X

To setup minimal development environment on Mac Os X, you will need:

  1. Install PyCharm (Community Edition is fine)
  2. Clone the dev repository:
git clone -b dev https://github.com/anthill-platform/anthill-dev.git
cd anthill-dev
git submodule update --init --recursive
  1. Run installation script
cd dev/osx
./setup.sh

This will install Homebrew, and Homebrew will install all of the required components.

  1. Open cloned repo in PyCharm.

  2. Setup the Project Interpreter.

    To do that, go to Preferences, select Project Interpreter, select Show All from the dropdown, hit “+”, select Add Local, and feed it with /usr/local/anthill/venv/bin/python.

  3. Select all run configuration, hit Run

    _images/compound_configuration.png
  4. Open http://localhost:9500 in your browser

  5. Press “Proceed”, login using username root and password anthill. You should see something like this:

    _images/admin_page.png

Linux

There is no development environment for Linux as of yet. See Installation (on Linux) for more information.