[]
This web application is intended to replace the current access based tool which will soon be deprecated. This application will be an essential tool for the business areas for planning and tracking of capital and rehabilitation maintenance projects for the Ministry of Transportation and Infrastructure.
Use the following steps to configure the local development environment
Clone the repository
git clone https://github.com/bcgov/crt.git
Create the CRT_DEV database in MS SQL Server
database/V01.1
directory(Vxx.x to Vxx.x)
in ascending orderCRT_SYSTEM_USER
table and assign the SYSTEM_ADMIN
role in the CRT_USER_ROLE
tableConfigure API Server settings
api/Crt.API/appsettigns.json
to api/Crt.API/appsettigns.Development.json
<app-id>
with actual KeyCloak client id in the { "JWT": { "Audience": "<app-id>" } }
fieldproperties/launchSettings.json
file.Configure the React development settings
client/.env.development.local
file and add the following content# use port value from step 3
REACT_APP_API_HOST=http://localhost:<api-port>
REACT_APP_SSO_HOST=https://dev.ocid.gov.bc.ca/auth
REACT_APP_SSO_CLIENT=<client-id>
REACT_APP_SSO_REALM=<realm-id>
REACT_APP_DEFAULT_PAGE_SIZE_OPTIONS=25,50,100,200
REACT_APP_DEFAULT_PAGE_SIZE=25
# Optional, default port is 3000
# PORT=3001
Use the following steps to run the local development environment
Run the API Server
cd api/Crt.Api
dotnet restore
dotnet build
dotnet run
Run the React frontend
cd client
npm install
npm start
Refer to this document for OpenShift Deployment and Pipeline related topics