./build.sh- outputs to
builddirectory - reproduce a prod-like build locally
- outputs to
./build-dist.sh- outputs to
distdirectory - compile locally, transfer build, run remotely
- outputs to
- Reads
MODE=fromconfig.env - NOTE: these scripts alter asset import paths in
index.htmlfiles
./build.sh --server-only
MODE=<mode> PW=<my_password> ./serve.sh- or more directly
cd backend/go && MODE=<mode> PW=<my_password> ./main
- serves on
localhost:8080
MODE=mode
localhostprodremotdev
- password for dev site
localhostandremotedevmodes only
- set
MODEinconfig.env MODE=localhost- build compiles Go for localhost architecture
MODE=remotedev, prod- build compiles Go for Linux
cdinto root of SPAnpm run dev- serves hot-updated SPA on
localhost:5173 - see SPA's
package.jsonfor more build options - NOTE: in order to work with
PublicSquarelocally, you will need- to serve on
localhost:8080or changeVITE_BASE_URL - either
- to disable Recaptcha manually in code
- to establish a test Recaptcha Enterprise project, key, and Api Key (Credentials)
- test Recaptcha Key protected by domain (localhost:8080)
- test Api Key (Credentials) for the Project protected by IP
- to serve on
- build with
MODE=localhost - start Go server on
localhost:8080(default) with passwordfoo
MODE=localhost PW=foo ./serve.sh
- start cypress, use ui to run specs
cd spec && npx cypress open && cd ..
- NOTE:
- specs are in early development focused on running in Chrome
- ticket for e2e testing
- ticket for unit/component testing