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:


You can now start the proxy server by executing docker compose up -d in the same directory. You should now be able to reach the proxy server in your browser under https://DOMAIN.TLD. As a final step, add the domain to your application’s configuration file: vite.config.ts, webpack.config.ts or angular.json. Configure the domain under the host key and start your development server.

You should now be able to see your application when you access the proxy server in your browser.

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

Was this article helpful?