This repository contains code for the Paris Agreement Capital Transition Assessment (PACTA) project, which consists of an OpenAPI v3-based API and a Nuxt-based frontend.
# First, run a credential service, which you'll need if you want to log in.
# Otherwise, you can manually create a token with genjwt and use the API directly.
cd <path to credential service>
# Run the credential service
bazel run //scripts:run_server -- --use_azure_auth
# In a new terminal, from this directory, run the PACTA database
bazel run //scripts:run_db
# In another terminal, run the PACTA server
bazel run //scripts:run_server -- --with_public_endpoint=$USER
# In one last terminal, run the frontend
cd frontend
npm run local
This project is at a very early stage, expect things to change rapidly.
To run the PACTA workflow code (e.g. from this repo), first create the relevant directories:
# From the repo root
mkdir workflow-data
cd workflow-data
mkdir -p analysis-output pacta-data real-estate score-card survey benchmarks portfolios report-output summary-output
And then load in the relevant files:
pacta-data
- Should contain timestamped directories (one per year or quarter or something) that contain the actual databenchmarks
- Should contain timestamped directories containing pre-rendered result sets for comparison to outputsportfolios
- Should contain a singledefault_portfolio.csv
, can be seen here
Look at scripts/run_workflow.sh
for more details. Once all the files are in the correct location, start a run with:
bazel run //scripts:run_workflow
You should see output like:
DEBUG [...] Checking configuration.
INFO [...] Running PACTA
INFO [...] Starting portfolio audit
...
Please report security issues to [email protected], or by using one of the contact methods available on our Contact Us page.
Contribution guidelines can be found on our website.