paulmwatson / idp-process-guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Participation Guide frontend

WebFlow Export + ES6 built with parcel.

Development environment

yarn install
yarn start

Custom frontend hostnme

The frontend passes its hostname to the backend to supply relevant by default. In development, you probably want to provide an alternative hostname.

Provide the hostname with the querystring variable hostname e.g. visit http://localhost:1234/?hostname=somemunicipality.gov.za

Custom backend hostname

The frontend connects to the production backend by default. In development you might want to connect to an alternative backend.

Provide a custom backend URL using the querystring variable api_url e.g. visit http://localhost:1234/?api_url=http://localhost:8000/api/v1

Production deployment

Ensure the backend has configuration for the frontend hostnames.

yarn
yarn build # compile the relevant bundles for production

About

License:Apache License 2.0


Languages

Language:JavaScript 85.6%Language:CSS 12.9%Language:HTML 1.5%