Skip to content

italia/form-pa

Folders and files

NameName
Last commit message
Last commit date
Oct 23, 2023
Jan 27, 2021
Sep 22, 2021
Feb 16, 2021
Jan 27, 2021
Dec 10, 2020
Dec 10, 2020
Dec 29, 2020
Jan 26, 2021
Dec 29, 2020
Oct 23, 2023
Oct 23, 2023
Oct 23, 2023
Nov 27, 2020
Dec 29, 2020
Dec 7, 2020
Jan 27, 2021
Oct 2, 2024
Aug 25, 2021
Jan 27, 2021
Dec 29, 2020
Dec 12, 2024

Repository files navigation

Form PA

Screen

Generate a valid JSON Schema

Using this 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

$ yarn install
$ yarn start

Local Prod

Install all dependencies and build

$ 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.

$ 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:

$ 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.