Skip to content

Angular web application for uploading CAD models to be used in the ProVR application.

License

Notifications You must be signed in to change notification settings

ProVR-Norway/ProvrWebsite

Repository files navigation

ProvrWebsite

License: MIT GitHub issues GitHub stars

Angular web application for uploading CAD models to be used in the ProVR application.

🧑‍💻 Usage

🛫 Running the web application locally

ng serve

🤖 Running the protractor test cases

ng e2e

❗️ Notice

In local development the application must listen on port 4200. If not, the CORS policy on Google Cloud Storage for the bucket used must be updated. Make changes to the cors-config.json and type this command in the terminal gsutil cors set cors-config.json gs://BUCKET_NAME to update the policy.

🚀 Deployment

This Angular webiste is deployed to App Engine and is available here 👉 ProVR Website

It is automatically deployed each time a push is made to the master branch. We use Google Cloud Build to make this possible, which is a CI/CD service on GCP. The app.yaml and cloudbuild.yaml files are used to configure this deployment.

🚨 CORS policy

When browsers comminicate with external servers they send a CORS preflight request in advance of the actual POST, GET or DELETE, etc. request. This policy needs to be configured explicitly on the bucket user-cad-models in Google Cloud Storage. This is the tutorial we used 👉 CORS Config GCS.

The JSON file used to configure the CORS policy is found in this repository under the name cors-config.json.

📚 Documentation

The complete documentation of the website can be found here 👉 https://provr-norway.github.io