Please note that if an organisation is conducting multiple games at the same time, you must create multiple organisations in the JSON object to send to the API.
If you try to do more than 1 game in an organisation, it will have unpredictable consequences.
In the future, if there are rules added that require multiple games to be run at the same time in an organisation (for example, if there's a yearly limit to the profits permissable), the code needs to change to remove the dependency on gaming_activity_type.gaming_activity_result.
We recommend that you use a virtualevn to install OpenFisca. If you don't, you may need to add
--user
at the end of all commands starting bypip
.
python3 -m venv games
deactive
source games/bin/activate
To install your extension, run:
make install
openfisca serve --country-package openfisca_nsw_base --extensions openfisca_nsw_community_gaming
You can make sure that everything is working by running the provided tests:
make test
To add your extension to the NSW API, update the openfisca-nsw-API repo's makefile with your extension's name, and add your extension as a dependency.
Your extension package is now installed and ready!