Timelord is a way to visually present data provided by the Harvester project. If you don't know what Harvester is, please go to the project and checkout the README file.
There is only a few steps you need to follow for Timelord to be functioning with your Harvester project:
- Clone the repository
git clone https://github.com/reload/timelord.git - Copy the
config.inc.examplefile toconfig.incand fill out the configuration.
You should now have a fully functioning TimeLord project up and running.
The local setup requires Docker and docker-compose.
Copy .env.example to .env and update the variables according to your harvestapp.com credentials, eg.:
HARVESTER_HARVEST_USER=harvest@example.com
HARVESTER_HARVEST_PASSWORD=secret
HARVESTER_HARVEST_ACCOUNT=companyname
docker-compose up will now give you a working timelord and harvester. First time building Harvester will take a long time importing the database.
Alternately, you can edit config.inc and insert a remote URL to a Harvester environment, and then just docker-compose up timelord. Your local Time Lord container will then fetch data from the remote Harvester environment.
There is no build step. The front end is plain ES modules and native CSS, served as-is, so edit the files and reload:
js/main.jsis the entry module; the rest ofjs/are the modules it imports. AngularJS, jQuery, Bootstrap, Chart.js and seedrandom come from the prebuiltjs/vendor.min.jsbundle as globals, re-exported fromjs/vendor.js.css/has one stylesheet per concern, with colours and other design tokens incss/tokens.css. New stylesheets must be added to the list inindex.php, which also sets their order.
index.php adds a cache-busting ?v= to every asset URL, a hash of the
files in js/, css/ and templates/, and an import map so the version
also applies to modules imported by other modules.