Little Bits of Buddha is a Telegram bot that offers daily bits of Buddhist scriptures to its users.
You can access Little Bits of Buddha at https://t.me/LittleBitsOfBuddhaBot.
- Install Garden with
curl -sL https://get.garden.io/install.sh | bash
- Install Devbox with
curl -fsSL https://get.jetpack.io/devbox | bash
- You are a registered user on https://gitlab.hansen.agency with permissions to contribute to the Little Bits of Buddha project
- You have a
$GITLAB_TOKEN
with theapi
andwrite_repository
scopes generated at https://gitlab.hansen.agency/-/profile/personal_access_tokens or an SSH key added to your account on this GitLab instance - You have a
$LOFT_ACCESS_KEY
generated by @worldofgeese granting access to this project's Kubernetes cluster
Contact @worldofgeese if you need help getting set up 😊
In order to get started developing run the following in your shell from inside the project directory:
devbox global add glab
eval "$(devbox global shellenv)"
glab auth login -h gitlab.hansen.agency -t $GITLAB_TOKEN
glab config set -h gitlab.hansen.agency git_protocol http
GITLAB_HOST=gitlab.hansen.agency glab repo clone worldofgeese/little_bits_of_buddha
devbox shell
cd little_bits_of_buddha
export TF_VAR_loft_access_key=$LOFT_ACCESS_KEY
Devbox will offer to install Nix if not already installed. devbox shell
will install all other requirements into an isolated development environment and launch you into it.
Now run garden deploy
when you're ready to deploy your app to your own private user namespace 🚀
Alternatively, open a cloud development environment in your browser with Devbox Cloud, Gitpod, or open in GitHub Codespaces by clicking their buttons below 👇.
Be sure to configure Gitpod and GitHub Codespaces before first start.
If you use VS Code as your editor, please run devbox shell
before launching VS Code from your shell with code .
. This ensures Devbox's shell variables are exported into your editor session. You may alternatively choose to use the Dev Container this project ships with.
For Emacs, this project ships with a .envrc
file that can be used by the envrc
package to auto-load a Devbox shell on navigating to the project. Instructions for use by Doom Emacs users can be found at the docs page. Other Emacs users can visit the envrc
GitHub repository.
Set GITLAB_HOST
, GITLAB_WORKFLOW_INSTANCE_URL
, GITLAB_TOKEN
and GITLAB_WORKFLOW_TOKEN
as variables before launching your Gitpod workspace or Codespace to automatically authenticate with the GitLab Workflows and GitLab glab
CLI tool on start-up. The first two variables share the same value (https://gitlab.hansen.agency). The remaining two values are the API token you generated in Prerequisites.