Skip to content

wcodes-org/web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ujnotes - web

Technology:

  • Nginx - aggregator reverse proxy, docker based
  • Supports HTTPS with a self-signed certificate
  • Routes to components Ujnotes : web-site - docker based

Localhost - hosts file

  • local.wolo.codes - 127.0.0.1

Project stcuture

Web
│
├── Site
│   └── Project             (wcodes-org/web-site)
|       ├── root\framework  (blank-org/cutie - submoduled)
│       ├── interim
│       └── public
│
├── Project                 (wcodes-org/web * this repo)
│   ├── interim             (wcodes-org/web-interim)
│   └── public              (wcodes-org/web-public > wcodes.org)
|
│
└── 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.wcodes.org

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.wcodes.org

Manage

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

Website

wcodes.org > mapped to public directory

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 "site/project" "https://github.com/wcodes-org/web-site.git"
clone_repo "project" "https://github.com/wcodes-org/web.git"
clone_repo "project/interim" "https://github.com/wcodes-org/web-interim.git"
clone_repo "project/public" "https://github.com/wcodes-org/web-public.git"
clone_repo "tiggu" "https://github.com/blank-org/tiggu.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

Watchers

Forks

Releases

No releases published

Packages

No packages published