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: