Portal interface implemented in Django Framework to use and administer Custos Services.
- Create a python virtual env for custos portal
python -m venv venv
- Install dependencies using
pip install -r requirements.txt
- Install custos client SDK in the virtual env (Follow instructions in "Install Custos Client SDK")
- Run django server using manage.py file in custos_portal directory.
python manage.py runserver
- Run webpack development server from custos_portal/custos_portal/static/common using:
npm run serve
- Create install files for custos client SDK using README
- Install the zip files created in the dist folder after activating the virtual environment created for custos portal.
pip install custos-python-sdk-1.0.0.tar.gz
This Django projects consists of 3 apps
- Admin: Handles all the requests and screens related to admin users in the portal
- Auth: Handles user registeration, login, passwords, login using institutional accounts
- Workspace: Handles all the requests for a regular users like 'create new tenant requests'
We also use vuejs for the screens in Admin and Workspace folders. The components and other javascript files can be found
at custos_portal\static\common