Creating a New App
The following steps are required to create a new HubX application:
- Creating a new repository
- Configuring the application
- Running the application locally
- Creating the Repoostory
- Configuring the application
- Running the application
- Updating the Routes files
- Creating a new Azure Pipeline.
- Adding an entry to the HubX menu
Creating a new repository
- Creating a new repo via Web.Template, using the naming pattern
Web.APPNAME.
Configuring the application
- Replace
samplefor thenameentry inpackage.jsonto the required name of the application - Edit the
pathinpackage.jsonto the required url for the application.
Both of these entries need to be unique in the system. You will receive a validation error if either are not unique during the routes setup process, but there is currently no check during this part of the process but you can refer to the routes to check.
Running the application locally
The following steps are required to create a new HubX application:
Creating the Repoostory
- Creating a new repo via Web.Template, using the naming pattern
Web.APPNAME, whereAPPNAMEcontains only alpha numberic characters.
Configuring the application
- Replace
samplein thenameofpackage.jsonto the required name of the application name. This name needs to be unique. - Edit the
pathinpackage.jsonto the required url for the application. This will be used in the routing section to register the application within HubX.
Running the application
- Run
yarn installon the new repository. - Run
yarn start. - The browser will open to http://localhost:3000/APP_URL_PATH showing the app within the HubX Shell.
Updating the Routes files
Refer to the routes section of the documentation to add a new entries to the routes file for each environment.
Creating a new Azure Pipeline.
Refer to the
- Create a new pipeline in the Cova Web Project.
- New Pipeline
- Save the pipeline
- Rename the pipeline to remove
RetailInnovationLabsfor clarity in the list.
Adding an entry to the HubX menu
- Refer to the menu items section to create an entry in the HubX menu.