Local environment setup for for Airavata server and Django portal
...
- Docker installed with 'docker-compose' utility
- Maven
- Gitpython3
- python 3.6, 3.5, 3.4
- npm
Clone the airavata repository using
...
- Build the project using mvn clean install -DskipTests. You can also open the project in intellij and use the intellij maven plugins to build the clean build install the project the project. Note: If you get an unknown database exception, make sure the mysql database is properly initialized. One easy way to check this is to verify the list of initialized databases in ide-integration/resources/database-data folder. It often helpful to stop db service, delete database-data folder and restart the docker service. Your database_data folder should look something like this. You can check the logs of db container to see if there are any errors.
Image Added
- cd airavata/modules/ide-integration/src/main/java/org/apache/airavata/ide/integration
- Open APIServerStarter.java in intellij
- Run the main class and make sure the server is successfully started
...
Go to airavata-django-portal directory and create a virtual environment
- python3 -m venv venv
- Note: Make sure that you create virtual environment with either Python 3.6, 3.5 or 3.4. Wagtail version 2.0 (one of the dependency) is only compatible with these python versions.
Activate the environment
...