standalone-auth v2.0.0
Web based authentication form for KanoOS
Authentication from based on kwc-auth running on kano-webengine and sending authentication token through QWebChannel
Installing dependencies
yarnDevelopment
Run yarn serve
Building
Bundle and compress the code. Env is pulled from the NODE_ENV env var. Then just run:
yarn build
Deploying
The build uses terraform to deploy the infrastructure and kart to deploy
the site.
Terraform
First, initialise the terraform state:
terraform init terraformTerraform has multiple "workspaces" to handle the different deployments, ensure that the workspace is created:
terraform workspace new stagingor just switch to one if it already exists:
terraform workspace select productionThen deploy the infrastructure. To deploy to staging:
terraform apply terraformFor production:
terraform apply -var-file=terraform/prod.tfvars terraformKart
Release the code to staging with:
kart archive www --archive-root releases.kano.me --from-repo . --channel staging --name os-auth --release"and to production with:
kart archive www --archive-root releases.kano.me --from-repo . --channel production --name os-auth --release"CI
Currently all branches will get deployed - master will deploy automatically to production and all other branches will deploy to staging.
6 years ago