https://github.com/italia/form-pa
A flexible and configurable form based on json schema
https://github.com/italia/form-pa
docker form-pa hacktoberfest json-schema
Last synced: 2 months ago
JSON representation
A flexible and configurable form based on json schema
- Host: GitHub
- URL: https://github.com/italia/form-pa
- Owner: italia
- License: agpl-3.0
- Created: 2020-05-19T12:31:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-07-21T23:18:20.000Z (11 months ago)
- Last Synced: 2025-08-20T16:48:01.166Z (10 months ago)
- Topics: docker, form-pa, hacktoberfest, json-schema
- Language: TypeScript
- Homepage: https://italia.github.io/form-pa/
- Size: 20.1 MB
- Stars: 19
- Watchers: 5
- Forks: 7
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Publiccode: publiccode.yml
Awesome Lists containing this project
README
# Form PA

## Generate a valid JSON Schema
Using [this](https://jsonschema.net) service or any others found on internet create a simple JSON schema results a quite easy operation to do.
## Run
### ENV
`YAML_SOURCE` is the env var in charge to switch from `yaml` support over `json`.
### Local Dev
Install all dependencies and start
```bash
$ yarn install
$ yarn start
```
### Local Prod
Install all dependencies and build
```bash
$ yarn install
$ yarn build
```
Then `./dist` will be ready to be served.
### Docker
Run with a preset json schema, stored in `public/schema/schema.json` and default uischema as well in `public/schema/uischema.json`. To overwrite them just mount a volume.
```bash
$ docker build . -t form-pa
$ docker run -it --rm -p 3000:80 form-pa
```
Or simply run docker replacing that schema with one supplied at runtime as:
```bash
$ docker build -f Dockerfile.dev . -t form-pa:dev
$ docker run -v ${PWD}/public/schema/schema.yaml:/usr/src/app/public/schema/schema.yaml -it --rm -p 3000:3000 -e YAML_SOURCE=true form-pa:dev
```
## License
form-pa is licensed under the [GNU Affero General Public License v3.0 or later](LICENSE)
license.