commit | 15ee5850d7745e23e8eb07b6dc2f3d0761344b35 | [log] [tgz] |
---|---|---|
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | Wed Jul 05 23:21:26 2023 +0000 |
committer | GitHub <noreply@github.com> | Wed Jul 05 23:21:26 2023 +0000 |
tree | 2e0a957e535670124bb05998af650a11d98b5377 | |
parent | cddc1bfb33bec81460b3a79c6bc7935ef0c932e4 [diff] |
Bump django from 3.2.16 to 3.2.20 Bumps [django](https://github.com/django/django) from 3.2.16 to 3.2.20. - [Commits](https://github.com/django/django/compare/3.2.16...3.2.20) --- updated-dependencies: - dependency-name: django dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Assuming you are running Custos locally (see https://github.com/apache/airavata-custos/tree/develop#quickstart), edit the .env file to match the client id and secret generated by the Custos bootstrap service:
CUSTOS_CLIENT_ID="custos-s8qf9g3odbbcdsgd2khv-10000000" CUSTOS_CLIENT_SEC="..." CUSTOS_API_URL="http://localhost:10000" CUSTOS_SUPER_CLIENT_ID="custos-s8qf9g3odbbcdsgd2khv-10000000"
You need Node.js 14 and Yarn 1 installed.
yarn install yarn run serve
You need Python 3.9+.
python -m venv venv source venv/bin/activate pip install -r requirements.txt ./manage.py migrate ./manage.py runserver
Airavat custos portal is available as a python package to install and customise for tenants needs. The forllowing instructions are for setting up a customised portal using all the features available in the airavata custos portal.
pip install airavata-custos-portal
django-admin startproject my_first_custos_app . cd my_first_custos_app django-admin startapp apps cd apps django-admin startapp frontend
# my_first_custos_app/apps/frontend/urls.py from django.contrib import admin from django.urls import path from django.conf.urls import include urlpatterns = [ path('admin/', admin.site.urls), path("api/", include("airavata_custos_portal.apps.api.urls")), path("", include("airavata_custos_portal.apps.frontend.urls")), ]
# my_first_custos_app/apps/frontend/urls.py from django.contrib import admin from django.urls import path from django.conf.urls import include urlpatterns = [ path('admin/', admin.site.urls), path("api/", include("airavata_custos_portal.apps.api.urls")), path("", include("airavata_custos_portal.apps.frontend.urls")), path("custom-ui/", include("my_first_custos_app.my_custom_ui.urls")), ]
The application consists of a Vue.js frontend and a Django based backend. The instructions below are for setting up the local setup for development.
Change the environment variables on .env
yarn install yarn serve
yarn lint
python -m venv venv source venv/bin/activate pip install -r requirements.txt ./manage.py migrate ./manage.py runserver
And then point to http://localhost:8000
yarn build
python -m pip install --upgrade build python -m build
python -m pip install --upgrade twine python -m twine upload dist/*