TLRD (install java and clj tools)
brew tap homebrew/cask-versions
brew install --cask temurin17
java --version # check that java is installed
# might need to add java to your path explicitly
echo 'export PATH="/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin:$PATH"' >> ~/.zshrc
brew install clojure/tools/clojure
brew install borkdude/brew/babashka
cp config-template.edn config.edn
Run bb dev
to get started. See bb tasks
for other commands.
Add the Calva
extention to vscode (assuming you don't want to code in Emacs).
Once the app is started, hit CMD+SHIFT+P
then type "Calva: Connect" (or CTRL+OPTION+C CTRL+OPTION+C
) then select deps.edn
from the dropdown menu.
Now the repl is connected and you cant hit OPTION+ENTER
to evaluate s-expressions.
Connect to the repl.
Then head to src/com/spicy/repl.clj
and evaluate the file (CTRL+OPTION+C ENTER
)
Move your cursor to line 28 and evaluate the form OPTION+ENTER
.
Now you will have 3 users, some workouts, and 2 workout results for each user in your database.
Type an email into the sign up or sign in form then take the URL that's printed out in your terminal and paste it into the browser.