commit | dd7ba079d5ce4a9233d910511a4cf2bf228c89b3 | [log] [tgz] |
---|---|---|
author | Marcus Christie <machrist@iu.edu> | Wed Apr 05 11:29:20 2023 -0400 |
committer | GitHub <noreply@github.com> | Wed Apr 05 11:29:20 2023 -0400 |
tree | fabcf6d13310ab05bcbd9bb109304f95cf022d6a | |
parent | f8f83354c4a1532b6964616573e669d1400addf1 [diff] | |
parent | 7677f53c8b6a5b808179d7ffffce206bd8361ae2 [diff] |
Merge pull request #173 from apache:fix-django-dockerfile Fix the Django Dockerfile
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 cd airavata_custos_portal/ ./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/*