Skip to content

uContact Code ​

uContact Code is a powerful tool within uContact that allows you to create your own projects within the application, using VSCode, your preferred framework, and providing the necessary tools for an efficient development cycle.

How to create a new project? ​

Creating a new project is very simple, let’s see how to do it!

  1. The first step is to click on the Forms option in the Developer menu.
  1. Next, click on the New button located at the top right corner.

Here, you will need to complete the basic information for the project in order to create it.

  • Name: assign a unique name to the project.
  • Project type: select the framework you will use for the project, Vue, React or Javascript.
Important!
Once the project is created, it will take a few seconds to install and then be ready for use.

First steps with the project ​

Once the project is created, it will appear in the form list along with the project information and some actions you can perform with the project.

Information ​

  • Name: the name associated with the form.
  • Type: the framework used by the project: Vue, React or Javascript.
  • Status: the current status of the project. See what each one means below.
  • Last built: the date of the last build of the project, or Never if it was never built. While a build is running, it shows Building.

What does each status mean? ​

Serving: the development environment is running.
Compiling: the development environment is starting.
Not served: the project is ready, but its development environment is not running.
Installing: the project was just created and its dependencies are being installed.
Deleting: the project is being deleted.
Error: the project could not be installed.
Unknown: uContact couldn't get the status of the project.

Actions ​

The actions you can perform with each project are as follows:

  • Code: opens a new tab with VSCode and the selected project.
  • Serve: starts the development environment of the project.
  • Open test: while the development environment is running, opens it in a new tab. Any changes you make to the code will be reflected in this tab.
  • Stop serve: stops the development environment.
  • Build: builds the project with the latest changes. It is not available while a development environment is starting or while the project is already being built.
  • Open form: opens in a new tab the last built version of the project. It is available once the project has been built at least once.
  • Delete: deletes the project.

Frameworks

The development environment lets you work on the project and see the changes in real time, without reloading the page. It stops automatically one hour after it starts, and it does not keep running after a server restart. If you need it again, start it with Serve.

Important!
Only one development environment can be running at the same time.

Templates ​

Once we create a project and access the code for the first time, we’ll notice that by default there is already a small form with some classes that will help integrate the project with uContact.

Frameworks

Since the project will be displayed in an iframe, there is a class created with some methods that allow communication with uContact.

Sensitive Data Protection
If your form has logic that requires sensitive customer information, we recommend not storing it in the uContact Database for security reasons.