Open Source Metering and Usage Based Billing API ️ Consumption tracking, Subscription management, Pricing iterations, Payment orchestration & Revenue analytics
Go to file
2022-03-10 14:08:22 +01:00
api@84cdab7406 misc: update api 2022-03-10 14:08:22 +01:00
front@dfee2df8b9 Dev configuration (#1) 2022-02-28 21:43:33 +01:00
traefik Lago scaffold 2022-02-28 11:03:13 +01:00
.gitignore Lago scaffold 2022-02-28 11:03:13 +01:00
.gitmodules misc: submodules new conf 2022-02-28 11:13:43 +01:00
docker-compose.dev.yml Dev configuration (#1) 2022-02-28 21:43:33 +01:00
README.md chore: Update README 2022-03-07 09:53:53 -06:00

Lago

Requirements

  • Git
  • Docker
  • Homebrew (macOS only)
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  • OpenSSL
    # Ubuntu/Debian
    sudo apt update
    sudo apt install openssl
    
    # MAC OS
    brew install openssl
    

Local Environment Setup

  • First of all, you need to clone the Lago repo on your machine, since we're using Git submodules, here is the good command to do it
git clone --recurse-submodules git@github.com:getlago/lago.git
cd lago

# If you're not using bash, replace .bashrc with your shell rc, ei: ~/.zshrc
echo "export LAGO_PATH=${PWD}" >> ~/.bashrc
echo 'alias lago="docker-compose -f $LAGO_PATH/docker-compose.dev.yml"' >> ~/.bashrc
source ~/.bashrc
  • Install mkcert and generate some certs for TLS usage
brew install mkcert nss
mkcert -install
cd $LAGO_PATH/traefik
mkdir certs
cd certs
mkcert -cert-file lago.dev.pem -key-file lago.dev-key.pem lago.dev "*.lago.dev"
  • Add all custom domains to your /etc/hosts file
127.0.0.1 traefik.lago.dev
127.0.0.1 api.lago.dev
127.0.0.1 app.lago.dev

Local Environment Commands

  • Start your local environment
lago up -d db redis traefik
lago up front api