danacr / BIMRoad

University Project on Google Cloud Run

Home Page:https://demo.bimroad.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BIMRoad

Online marketplace written in JavaEE based on Servlets and H2. CICD is done using Google Cloud Build and Run.

Build, Push, Deploy

logo

Built by Sverrevh and me as a University project.

Run on Google Cloud

Alternatively, run this command inside your Google Cloud shell:

cloudshell_open --repo_url "https://github.com/danacr/BIMRoad.git" --page "editor"

Note: because the repository contains capital letters, you must must remove $REPO_NAME from your inline cloudbuild.yaml, e.g. from $_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA to $_GCR_HOSTNAME/$PROJECT_ID/$_SERVICE_NAME:$COMMIT_SHA

Getting started:

Run: docker-compose up

Admin account details:

email: admin@bimroad.org
password: password

Website will be available at localhost:8080

Demo:

Visiting localhost:8082 will reveal the ngrok reverse tunnel address. (Other's can access the website at that link without the need of any port-forwarding)

Build: docker build . --tag bimroad

Useful commands:

java -jar target/dependency/webapp-runner-*.jar target/BIMRoad

# Restore
java -cp target/dependency/h2-*.jar org.h2.tools.RunScript -url jdbc:h2:file:./h2new -script sql/h2backup.sql

# Backup
java -cp target/dependency/h2-*.jar org.h2.tools.Script -url jdbc:h2:file:./h2new -script 'h2backup.sql'

# Maven
mvn install dependency:copy-dependencies
mvn install
mvn package

About

University Project on Google Cloud Run

https://demo.bimroad.org

License:MIT License


Languages

Language:Java 98.8%Language:HCL 0.9%Language:Dockerfile 0.3%