Skip to content
wolo-codePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Wolo Code - web

Technology:

  • Nginx - aggregator reverse proxy, docker based
  • Supports HTTPS with a self-signed certificate
  • Routes to components Wolo-code : web-app & web-site - both docker based

Localhost - hosts file

  • local.wolo.codes - 127.0.0.1

Project stcuture

Web
│
├── App
│   └── Project             (wolo-code/web-app)
│       ├── interim
│       └── public
│
├── Site
│   └── Project             (wolo-code/web-site)
|       ├── root\framework  (blank-org/cutie - submoduled)
│       ├── interim
│       └── public
│
├── Project                 (wolo-code/web * this repo)
│   ├── interim             (wolo-code/web-interim)
│   └── public              (wolo-code/web-public > wolo.codes)
|
│
└── Tiggu                   (blank-org/tiggu)
│
└── Firebase                (blank-org/firebase)

Certificate

For SSL generate server.key & server.crt files

cert_details.txt :

[req]
distinguished_name = req_distinguished_name
prompt = no

[req_distinguished_name]
CN = local.wolo.codes

Generate self-signed certificate

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt -config cert_details.txt

You may also want to add this to your trusted-root CA store
- so that you are not presented with the insecure origin message when navigating to local.wolo.codes

Native publish gates

PublishRunner.ps1 Invoke-WoloNativeTiggu runs two checks so a green bake is actually clean:

  1. Pre-bake — Root/Framework/CSS/Base must exist and contain at least one .css file (Cutie Framework).
  2. Post-bake — scan project/public HTML for PHP error leakage (fatals, scandir( failures, Windows path dumps).

Either gate throws before public/ can be copied to web-public.

Manage

Firebase : docker based - project is to provide firebase CLI.
Used to setup CI; Not required afterwards - hence separate.

Website

wolo.codes > mapped to public directory (prod Firebase project wolo-codes). dev.wolo.codes > same bake, Firebase project waddress-5f30b (dev in .firebaserc).

Operator console

Local OliveTin at D:\Wolo\Web\console (wolo-code/console). Caddy: console.wolo.local → 127.0.0.1:47822. Start console\Start-Console.ps1. Use it to check tool updates, update publishing tools, render, deploy development, or push production.

Native publishing tools

  • Install initial toolchain: Install-NativePublishTools.ps1 (downloads minify & Closure Compiler to D:\Wolo\Web\.native-tools).
  • Check and update toolchain: Update-NativePublishTools.ps1 (supports -CheckOnly, -Tool all|closure-compiler|minify, -Force, -CleanOldVersions).
  • In the OliveTin console: use Check tool updates and Update publishing tools actions in the Test row.

Setup

  • Run following script to setup the directory structure & repos
base_directory="web"

# function to create directory and clone git repository
clone_repo() {
    local path=$1
    local remote_url=$2
    local full_path="$base_directory/$path"

    # create base directory if it doesn't exist
    mkdir -p "$base_directory"
    
    # clone the repository into the specified path
    git clone --recurse-submodules "$remote_url" "$full_path"
}

# clone git repositories into specific paths
clone_repo "app/project" "https://github.com/wolo-code/web-app.git"
clone_repo "site/project" "https://github.com/wolo-code/web-site.git"
clone_repo "project" "https://github.com/wolo-code/web.git"
clone_repo "project/interim" "https://github.com/wolo-code/web-interim.git"
clone_repo "project/public" "https://github.com/wolo-code/web-public.git"
clone_repo "tiggu" "https://github.com/blank-org/tiggu.git"
clone_repo "console" "https://github.com/wolo-code/console.git"
# clone_repo "firebase" "https://github.com/blank-org/firebase.git"
  • Then build and run docker for web\project

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages