Self-Host
AliaJS let you self-host a cloud system in two command lines; 5 minutes of your attention time.
Security
Section titled “Security”Running commands from the Internet into your computer is not the best security practice. If you don’t fully trust the source of what you are running you should take easy precautions. Recommended read Reflections on Trusting Trust by Ken Thompson
Running commands inside a virtual machine, sandbox or security wrapper, example: Socket CLI
Blank cloud account, or sandboxed project
Virtual credit card, limited in credit (amount you are confortable to risk)
Throwaway domain name with limited scope DNS API record access
Getting Started
Section titled “Getting Started”Prerequisites
Section titled “Prerequisites”Cloud account (only Hetzner for now)
Transfer name server
- Hetzner Authoritative name servers
- hydrogen.ns.hetzner.com.
- oxygen.ns.hetzner.com.
- helium.ns.hetzner.de.
Node.js version >= 22.18.0 installed locally
# More install options# https://nodejs.org/en/download
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash\. "$HOME/.nvm/nvm.sh"nvm install 24Quick Start
Section titled “Quick Start”Login to your cloud console
Create a new project (+ New project): https://console.hetzner.com/projects
You will be asked two set of secrets (API token, S3 credential), run the first command and wait for the first question:
What is your Hetzner API key (token)? Security > API tokens, then click Generate API token, set as (Read & Write)
What is your S3 access key? Security > S3 credentials, then click Generate credentials
Bootstrap a new cloud system
Section titled “Bootstrap a new cloud system”# Specific version context# https://github.com/dani-garcia/vaultwarden/discussions/7615#discussioncomment-18140443
npx aliajs new# Specific version context# https://github.com/dani-garcia/vaultwarden/discussions/7615#discussioncomment-18140443
# AliaJS works best in an empty directorymkdir aliajsgit checkout erpnext-15npm install && npm run new# Answer the questions ...Quick start video (4 minutes)
Section titled “Quick start video (4 minutes)”Social
Section titled “Social”Mastodon discussion
https://mastodon.social/@jcaron/117333060141664239