Local development

Last updated:

To access forms – even during local development work – Formcentric Cloud applications need a domain to be entered in Formcentric in the Admin center under Organisation. This requires the setup of a proxy server.

Use of Docker and Caddy

Create a simple proxy server that forwards the requests to Formcentric via the domain that you have entered. SSL certificates do not need to be created.

Create a Caddyfile configuration file for Caddy in your project:


2. Create a docker-compose.yml:


The proxy can then be started with: docker compose up -d. Your application should then be accessible at https://DOMAIN.TLD.


Next, you need to add a corresponding host entry in /etc/hosts so that the desired dev domain points to your local machine.


Example:


After that, the domain must be approved in your Formcentric Cloud admin account. Please refer to the article Managing domains for further details.


Only after this step can the proxy be started with: docker compose up -d. Your application should then be available at https://DOMAIN.TLD . DOMAIN.TLD is a placeholder for your chosen development domain.

Bundler and framework proxy configuration

Modern bundlers and frameworks typically also offer direct configuration of the proxy server in your configuration files. To do this, consult the documentation for the technology that you are using:

  1. Server-Options
  2. DevServer I webpack
  3. Angular

Feedback