No description
.vscode/alive | ||
src | ||
tests | ||
.gitignore | ||
build.sh | ||
buildscript.lisp | ||
create-session.sql | ||
docker-run.lisp | ||
Dockerfile | ||
front-office.asd | ||
init-db.sh | ||
LICENSE | ||
README.md | ||
save-core.lisp | ||
setup-build.lisp |
front-office
Setup
- mkdir -p ~/.quicklisp/local-projects
- git clone git@github.com:Zulu-Inuoe/jzon.git ~/.quicklisp/local-projects/jzon
- git clone git@github.com:Shinmera/float-features.git ~/.quicklisp/local-projects/float-features
- git clone git@github.com:marijnh/Postmodern.git ~/.quicklisp/local-projects/Postmodern
- git clone git@github.com:fukamachi/mito.git ~/.quicklisp/local-projects/mito
- git clone git@github.com:psvensson/clack-cors.git ~/.quicklisp/local-projects/clack-cors
- git clone ssh://git@git.patagia.dev/psvensson/front-office.git ~/.quicklisp/local-projects/front-office
sbcl
in sbcl; (ql:register-local-projects)
env vars;
- LOGIN_DESTINATION
- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET
- DB_USER
- DB_PASS
- DB_NAME
Requirements
- SBCL
- PostGreSQL
docker run -d -p 5432:5432 --name some-postgres -e POSTGRES_USER=${DB_USER} -e POSTGRES_DB=${DB_NAME} -e POSTGRES_PASSWORD=${DB_PASS} -d postgres
Testing setup
docker run --rm -d
--name front-office-test-db
-e POSTGRES_USER=fo_test
-e POSTGRES_PASSWORD=fo_test
-e POSTGRES_DB=fo_test
-p 55432:5432 postgres:16
export FO_TEST_DSN="postgres://fo_test:fo_test@localhost:55432/fo_test"
Env vars (defaults to the above values though)
- TEST_PG_HOST
- TEST_PG_PORT
- TEST_PG_USER
- TEST_PG_PASSWORD
- TEST_PG_DB
Running tests
rlwrap sbcl
- (ql:quickload :rove)
- (asdf:load-system :front-office :force t)
- (asdf:test-system :front-office/tests)
Build Docker image
docker build --no-cache -t front-office .