Skip to content

archesproject/arches-lingo

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Repository files navigation

Lingo

Lingo Application (Vocabulary Management)

Setup
  1. a. if working locally, run pip install . inside arches application to copy files into ENV or pip install -e . to create an egg link to a local arches application. b. if not working locally run pip install arches-rdm
  2. Create a project if not installing into already-existing project.
arches-project create $PROJECT_NAME
  1. Add package to INSTALLED_APPS and ARCHES_APPLICATIONS
INSTALLED_APPS = (
    ...,
    "arches_rdm"
)
ARCHES_APPLICATIONS = (
    ...,
    'arches_rdm',
)
  1. Add arches_applications to dependencies in package.json
"dependencies": {
    "arches": "archesproject/arches#dev/7.6.x",
    "arches_rdm": "archesproject/arches-rdm"
}
  1. Install arches_application dependencies
yarn install
  1. Add the application urls to the project's urls.py
urlpatterns = [
    path('', include('arches.urls')),
    path('', include("arches_rdm.urls")),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  1. This project currently uses a frontend outside of Arches. To allow it to communicate with Django, add this to your project settings.py:
CORS_ORIGIN_ALLOW_ALL = False
CORS_ORIGIN_WHITELIST = ["http://localhost:8080"]  # vue frontend

NOTE: This rough draft currently assumes the Django backend is served at https://127.0.0.1:8029/.

Run the frontend with:

npm run serve