Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 2.74 KB

README_DEV.md

File metadata and controls

62 lines (44 loc) · 2.74 KB

Technical Documentation

Context and Requirements

Infrastructure (service oriented architecture):

+---------------+
|  releasetool  | request   +-----------------+
|  webapp       +----------^+   catalog-api   |
|               +v----------+                 |
|               | response  +-----------------+
|               |
|               |
|               | request   +-----------------+
|               +----------^+  thesaurus-api  |
|               +v----------+(SPARQL endpoint)|
|               | response  +-----------------+
+---------------+

API requirements:

These services may be provided on different servers, possibly publicly available.

Software (Server):

The releasetool requires python (Version >= 3.4) and the libraries specified in requirements.txt. It has been tested on Windows 7 and on CentOS 7.5.

Please copy jquery 3.1.1, jquery-ui-1.12.1, bootstrap 3.3.7, and glyphicons into the corresponding locations (css, fonts, js) in the zaptain_rt_app/static/ folder.

Software (Client):

  • web browser: Firefox (60.1.0), javascript enabled

Installation, Configuration, Customization

You should be familiar with the django web framework (v2.0) and have satisfied all requirements. The following steps guide you to a running development server.

In order to customize the releasetool, you have to set a few configuration options.

Copy zaptain_ui/settings_template.py to zaptain_ui/settings_local.py. Set a new passphrase (SECRET_KEY) and absolute paths as described in that module, for instance, define the static files folder (STATIC_ROOT). Create a superuser account etc.

In particular for testing, you can use the special manage command rt_testdb to reset the database to a specific test state. You can further have a look at the test module's TestContentManager class.

You may want to start your development webapp now, and visit: