CIOBrain is the visualization of the mind of a CIO.
Node.JS is required for setting up. Moreover, the ciobrain-api project is required to be set up prior to this one.
- Ensure the CIOBrain API is running.
- Run the
npm install
command on this project. This can be done by navigating a terminal window to have its current directory be the root folder of this project, then running the command. - Run the
npm start
command on this project.
While there are many ways to approach deployment, this guide will use VSCode and Microsoft Azure.
- Open VsCode
- Select the Extensions from the left menu bar (fifth icon)
- Or [Ctrl]-[Shift]-[X]
- Search “Azure App Service” and “Install”
- Open the CIOBrain project in VsCode
- Select Azure from the left menu bar
- Or [Shift]-[alt]-[A]
- Expand the “App Service” Tab
- Select the second icon to “Deploy to Web App”
- Select “Create new Web App (Advanced)”
- For the name of the web app, enter “CIOBrain”
- The name of the web app can be anything. Only the API name has to be constant and to stay consistent with the api url configured in src/common/Asset.js in CIOBrain.
- Select “Create new resource group”
- Enter a name for the new resource group (ie. “CIOBrain-resource”)
- For the runtime stack, select “Node 14 LTS”
- For the OS, select “Windows”
- For the location for new resources, select “Central US”.
- “Central US” resources are the closest to Texas and therefore, will give us the fastest response times. This can change if the location of the website user/tester is closer to the west or east coast.
- For the Windows App Service Plan, select “Create new App Service plan”
- Enter a name for the new service plan (ie. “CIOBrain-plan”)
- For the pricing tier, select “Free (F1)”.
- This can change if the website scales or if other Azure features are needed.
- For the Application Insights resource, select “Skip for now”.
- Open the CIOBrain API project in VsCode
- Select Azure from the left menu bar
- Or [Shift]-[alt]-[A]
- Expand the “App Service” Tab
- Right click “CIOBrain API” or “CIOBrain” and select “Deploy to Web App” to redeploy.
- When the warning message pops up, select “Deploy” to confirm.