Forge BIM Phasing application based on Node.js.
- Install git.
- Install Node.js LTS.
- Install Visual Studio Code.
- Clone or download code from Git
- Run
npm install. This will install all dependencies and build both server and client. - Enter
set FORGE_CLIENT_ID=xxxxwherexxxxis unique client ID of your Forge application. The client ID can be generated on Forge portal. - Enter
set FORGE_CLIENT_SECRET=xxxxwherexxxxis unique secret of your Forge application. - Build server by typing
npm run build:server. - Start node server by typing
npm start. This starts server on port 3000. - Start dev server by typing
npm run dev. This starts development server on port 5000.
When using your own client ID/secret you also need to translate model and update URN in appController.ts.
- Use
npm run build:serverto build the server. - Use
npm run build:clientto build the client.
Build Docker image:
docker build . -t forge-bim-phasing
To run application from image locally use following command:
docker run --env-file .env -it --rm -p 5000:3000 forge-bim-phasing
The application can be then accessed on port 5000:
http://localhost:5000
- Open web page here. Note that it's using shared instance so it may take a while when website opens when running for first time.
- Click on Phases button in the main toolbar.
- The Phases panel is displayed.
- Use navigation buttons in the panel to navigate betwen phases.
- The elements associated with current phase are highligthed in green color. The panel displays brief statistics (number of elements, area, volume).
- Click on Report button.
- The Report panel is displayed. It displays report of elements for each phase.