This is an example of how to deploy the Form.io Enterprise solution locally. To get this to work, please step through the following instructions.
- Install Docker to your local machine.
- Download this Gist to your local computer, and navigate to the folder within your machines terminal.
- Get a temporary LICENSE by contacting [email protected]
- Once you receive your license, paste this as the value for the
LICENSE:
environment variable within thedocker-compose.yml
file. - Type
docker-compose up
within your terminal. - This will install all dependencies locally and run the server @ http://localhost:3000 on your machine.
- Login using the credentials
[email protected]
andCHANGEME
as the password. - You should see a project called "Portal Base", open this project and then navigate to Settings > Stage Versions > Import Template
- Download the PDF Project to your local machine, and then import that into the Portal Base project
- Next navigate to Settings > Stage Settings > API Keys and create an API key for this project.
- Next navigate to Settings > PDF Management and then click on the Enterprise tab.
- Copy the value of the FORMIO_PROJECT and then request [email protected] to enable this project for Enterprise plan.
- Once this is done, you can then copy the following values and paste them into the docker-compose.yml file. Note: Your values will be different
- FORMIO_PROJECT: 5d03208cf1fefc22cbefaa1d
- FORMIO_PROJECT_TOKEN: 1ntb8zE4LhoaaekMMKQQ3kMakr1kUN
- FORMIO_PDF_PROJECT: http://formio/formio
- FORMIO_PDF_APIKEY: UzEevZFX9dXjIQ982E3aTIi9Ir3rAi
- Re-install the docker compose by typing the following.
docker-compose stop
docker-compose rm
docker-compose up
You should now have a completely working local Enterprise environment of Form.io.