Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

threefoldtecharchive/twin_server

Repository files navigation

Digitaltwin

Digitaltinw provides - your own digital avatar (identity server) - private file browser - chatting - publishing platform for wikis and websites

Main components

  • Main server and publishing functionalities (this repo)
    • publish wikis and websites from ~/.publisher/publish directory
  • Filebrowser, chatting, digital avatar
    • Backend digitaltwin-lib installed as a dependency
    • Frontend twin_aydo built and installed using publishtools as indicated below

Installation

  • Install publishtools
  • we need to run publishtools command from a directory containing a config file sites.json. if you don't have this config file create a new one with the following content (The digitaltwin frontend)
    [{
                    "name": "twin_aydo",
                    "url":  "https://github.com/threefoldtech/twin_aydo",
                    "branch":       "",
                    "pull": false,
                    "reset":        false,
                    "cat":  2,
                    "shortname":    "twin",
                    "path_code":    "",
                    "domains":      ["mydigitaltwin.io", "www.mydigitaltwin.io"],
                    "descr":        "you digital life",
                    "groups":       [],
                    "acl":  [],
                    "trackingid":   "",
                    "opengraph":    {
                            "title":        "",
                            "description":  "",
                            "url":  "",
                            "type_":        "article",
                            "image":        "",
                            "image_width":  "1200",
                            "image_height": "630"
                    }
            }]
    
  • publishtools install Init publishtools
  • publishtools build --pathprefix build the www_threefold_twin or the digitaltwin frontend website
  • By default the publisher will serve websites from ~/.publisher/publish directory that says that when u build a website/wiki, the build will be saved in this direcoty.
  • publishtools publish_config_save Save the config file you are using in ~/.publisher/sites.json

Run Digitaltwin

  • publishtools develop Run publishtools (required now to get wikis from)
  • node server dev mode
  • NODE_ENV=production SERET=mysecret THREEBOT_PHRASE="my threebot phrase" node server production without ssl handling (ssl offloading)
  • NODE_ENV=production SERET=mysecret ENABLE_SSL=true THREEBOT_PHRASE="my threebot phrase" node server production with (ssl)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors