Web Applications
The web applications are written in Vue.js and provide the user interface to interact with the entire system.
-
corteza-webapp-one: (https://github.com/cortezaproject/corteza-webapp-one)
-
corteza-webapp-admin: (https://github.com/cortezaproject/corteza-webapp-admin)
-
corteza-webapp-compose: (https://github.com/cortezaproject/corteza-webapp-compose)
-
corteza-webapp-workflow: (https://github.com/cortezaproject/corteza-webapp-workflow)
Communication between the Corteza server and web applications is done using the REST API and web sockets.
Development setup
Fork the Corteza web application
Core contributors should skip this part. |
-
go to the https://github.com/cortezaproject/corteza-webapp-$WEB_APPLICATION repository
-
click on the Fork button in the top right corner and follow the instructions on the screen.
Clone the repository
-
open the CLI
-
navigate to your working folder
-
run the
git clone git@github.com:$YOUR_USERNAME_HERE/corteza-webapp-$WEB_APPLICATION.git
command
Configure the environment
-
run
cp public/config.example.js public/config.js
for Linux, or inpublic
folder runcopy config.example.js config.js
for Windows -
open the
config.js
file using VIM, Nano, or any other editor and modify the configuration as you see fit
Set the API
public/config.js
by setting:window.CortezaAPI = '$API_DOMAIN'
The underlying API client generates the exact request URL that the web application uses.
Set the authentication API
Corteza web applications authenticate the user using an OAuth2 flow.
This part can be skipped when using the same Corteza server for authentication and processing.
The web application will generate the authentication endpoints based on the CortezaAPI
parameter.
public/config.js
by setting:window.CortezaAuth = '$API_DOMAIN/auth'