Jira
Navigate to https://exceleratr.atlassian.net/ and select the project ThingLogix Asset Management
-
Create a new issue for the page you are creating
By default, the assignee is Rob Rastovich; change this to the appropriate assignee
-
Under the Development section on the right, click the Create branch button
You will be navigated to Bitbucket
Bitbucket
-
The project should default to thinglogixteam/sealed-air-foundry
If it is not defaulted to this, change it
-
Branch from feature/TAM-653
This is the branch of Foundry thatÂ
-
Replace the default branch name to match naming conventions
If your ticket is called TAM-725, title your branch feature/TAM-725
Click Create branch
Git
Clone the repository and checkout the branch you created
Adding the Page
Creating the View
Create a new directory in sealed-air-foundry/Thinglogix_Axon_Web_Portal/app/views/templates
Create a new html file in that directory
Create the Controller
Create a new directory in sealed-air-foundry/Thinglogix_Axon_Web_Portal/public/javascripts/controllers
-
Create a new javascript file in that directory
-
Naming conventions require a suffix of Ctrl to the name of the file
deviceCtrl.js
-
Insert the code to create the controller for your page
Loading the Controller
Open the file sealed-air-foundry/Thinglogix_Axon_Web_Portal/index.html
Insert a script tag to import your controller
Adding Routes
Open the file sealed-air-foundry/Thinglogix_Axon_Web_Portal/public/javascripts/main.js
Add a route for your page
Serve the Page
-
Host a local server to serve the page
https://www.npmjs.com/package/live-server is easy to set up and automatically reloads the page when code changes
View the Results
Navigate to the address your local server provides e.g. localhost:8080
Enter the route into the url
Your page should be displayed