Run the Django server using,
make run
Then, to automatically compile static assets on save and hot-reload in the browser, in another terminal run
make run-watch
Some user interactions (e.g pulling and converting project sources) require Job
s. For these jobs to be fulfilled you will need to run some of the other services,
make -C ../broker run
to establish a job queuemake -C ../overseer run
to update the manager with data on workers and jobsmake -C ../worker run
to actually perform the jobs
Four forms of code quality analysis are currently done:
-
make lint-format
runsblack
for code formatting checking. -
make lint-code
runsflake8
for code style checking. -
make lint-types
runsmypy
for static type checking. -
make lint-docs
runspydocstyle
for checks on docstrings.
Running make lint
will perform all three checks.
The script create_page_snaps.py
will, for all of the manager
's pages (well, almost all; it includes pages that are behind feature flags but excludes admin and some other pages),
-
Records the response status code, response time and number be database queries (useful as an end-to-end and performance test)
-
Takes screenshots of the entire screen at laptop and mobile viewport sizes (useful for quickly scanning for broken pages and visual consistency)
-
Takes screenshots of specified page elements for use in user guides e.g. http://help.stenci.la/en/articles/4170083-create-an-organization (useful so that these stay up-to-date without having to be manually recreated)
To run this script, make sure you have the dev server running locally,
make run
Then in another terminal, run the script and open up the generated report.
make snaps
open snaps/index.html
This script is run as part of continuous integrations and the report published on GitHub Pages at https://stencila.github.io/hub/manager/snaps/.