Load another program's code.
Retrieve resource at an URL. Text of response can be retrieved like so: get(url)["body"].
Decode a string of JSON data. Example: decode(get("http://example.com/example.json")["body"])
Run a program.
Save a program.
Removes a program.
List saved programs.
Shows the code for a saved program.
Display help for these commands.
- Create SSH key in Digital Ocean
- Create API key (https://cloud.digitalocean.com/account/api/tokens)
- Fork this project
- Install ansible and dotenv
- Set the below environment variables in .env
- Put random values for
SECRET_KEY_BASEandLIVE_VIEW_SIGNING_SALTin .env (this should be updated to not be required at build time) - Run
dotenv ./cross-compile.shto build the release - Run
dotenv ansible-playbook playbook.ymlto put it in the internet - Connect a domain name
- Log in and run certbot --nginx
- Manually disable the nginx site "default" and enable the site "bot"
SECRET_KEY_BASE(generate a random secure value)LIVE_VIEW_SIGNING_SALT(generate a random secure value)WEB_SERVER_HOST(the domain name that the app runs on)
SLACK_APP_IDSLACK_CLIENT_IDSLACK_CLIENT_SECRETSLACK_SIGNING_SECRETSLACK_BOT_TOKEN
GITHUB_CLIENT_IDGITHUB_CLIENT_SECRETAUTHORIZED_GITHUB_USERS(list of GitHub usernames that will have access to the web UI)
DO_API_TOKEN(Digital Ocean token that has access to provision an instance)SSH_KEYS(Example:'["1000001","1000002"]'. Get them withdoctl compute ssh-key list)