#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
# shellcheck source=../lib/common.sh
source "${ROOT}/lib/common.sh"

NAME="${NAME:-Example User}"
EMAIL="${EMAIL:-user@example.com}"
PASSWORD="${PASSWORD:-password123}"

curl_post_json "/sign-up/email" "$(printf '%s' "{\"name\":\"${NAME}\",\"email\":\"${EMAIL}\",\"password\":\"${PASSWORD}\"}")" | pretty
