SOCIAL
SOCIAL is a Social Welfare Calculator Adaptable to Varying Legal Frameworks.
SOCIAL enables the modeling and editing of social welfare calculators and questionnaires and can generate web applications based on these models. The model editor uses a Directed acyclic graph (DAG) to model calculators and questionnaires and is based on DAGitty by Textor et al., which was modified to enable domain-specfific modeling. SOCIAL can then convert the model to a web application.
Testing
- Download SOCIAL from GitHub
- Run
npm install
- Run
ng serve
for a dev server. To test the editor, set up aPHP
server to serve the files fromdagitty-social/gui
.
Build
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Deployment
Assuming a Ubuntu 20.04.1 LTS server. To install the LAMP Stack, you can follow the instructions by Linode.
- Upload the build artifacts (the application) to the server.
- Upload the directory
dagitty-social/gui
(the editor) to the server. - Place the
Python
Script in/usr/local/bin/dot_to_formly_json-python
- Ensure the
editor/models
andassets/json-powered
directories can be written to using thePython
script (correct permissions)
Online
A version has also been deployed at https://social.cosy.univie.ac.at
Notes
This project was generated with Angular CLI version 9.0.5.