Arches Dashboard is a very basic example of an Arches App. It demonstrates how to create an app that adds an Arches component with Django model and view. Specifically it adds a plugin that displays a summary of resources and tiles in the system, and allows a user to record that summary to monitor the change in the resource/tile count over time.
You can add the dashboard to an Arches project in just a few easy steps.
- Install if from this repo (or clone this repo and pip install it locally).
pip install git+https://github.com/chiatt/dashboard.git
- Add
"dashboard"
to the INSTALLED_APPS setting in the demo project's settings.py file below the demo project:
INSTALLED_APPS = [
...
"demo",
"dashboard",
]
- Version your dependency on
"dashboard"
inpyproject.toml
:
dependencies = [
"arches>=7.6.0,<7.7.0",
"dashboard==0.0.1",
]
- Update your urls.py file in your project:
from django.urls import include, path
and then the following path:
path("", include("dashboard.urls")),
- From your project run migrate to add the model included in the app:
python manage.py migrate
- Next be sure to rebuild your project's frontend to include the plugin:
npm run build_development
- When you're done you should see the Dashboard plugin added to your main navigation bar:
![Dashboard plugin](https://private-user-images.githubusercontent.com/1877663/284099335-5c45727d-fee9-46c1-94fa-fa18358353bf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NjcxODUsIm5iZiI6MTczOTU2Njg4NSwicGF0aCI6Ii8xODc3NjYzLzI4NDA5OTMzNS01YzQ1NzI3ZC1mZWU5LTQ2YzEtOTRmYS1mYTE4MzU4MzUzYmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMjEwMTI1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGE5M2U5M2FkNWVjMjRmZjk1MzBiZmE3ZjY0Mzc5N2Y1NTk5NzZiZjk0ODNmNDU1MzUyMDEzYTNkYzBjYWNlOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.ZjuQwxJtKHbk30HY2YODz4-I-JH1Ywl789HYmKC3Q24)