Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 1.03 KB

README.md

File metadata and controls

60 lines (37 loc) · 1.03 KB

Run bb dev to get started. See bb tasks for other commands.

Development

App

Ensure index.js requires the development target.

Run yarn repl to start the ClojureScript compiler and Clojure REPL. Run yarn start to start the Metro Dev server.

Backend

Connect to the Clojure REPL started by yarn repl, and run

user=> (require 'dev)
user=> (dev/start)

This will start the development API server.

Update the app config to use the local endpoint (for now in api.cljs).

Release

Build a release version of the app

Ensure index.js requires the production target. Ensure the app config (for now in api.cljs) points to production host.

Compile the production ClojureScript:

yarn cljs:build

In XCode, run a build using the Bardistry Release scheme.

Deploy backend

Deploy backend using:

git push prod main

Ensure it restarted using either:

bb logs

Or log into the production server to check on the app service status:

ssh [email protected]
systemctl status app