Web Applications
Development setup
Fork the Corteza web application
Core contributors should skip this part. |
-
go to the https://github.com/cortezaproject/corteza 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:cortezaproject/corteza.git
command
Refer to the repository if you wish to use an alternative method. |
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 = '$BASE_URL'
The $BASE_URL
parameter is the location of your Corteza server.
If you are running the server on http://localhost:80, then the value should be http://localhost:80/api
.
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 = '$BASE_URL/auth'
Assure dependencies
When using modified versions of |
Run the yarn
command to assure that all of the packages are present and up to date.
See the package.json
file for the supported Node.js versions.