No description
Find a file
2025-08-18 20:04:54 +02:00
.vscode/alive added default silo, project and group 2025-08-18 20:04:54 +02:00
src added default silo, project and group 2025-08-18 20:04:54 +02:00
tests refactoring and cleaning up 2025-08-18 17:48:34 +02:00
.gitignore initial wip 2025-06-17 19:42:22 +02:00
build.sh some cleanup and renaming 2025-06-19 21:09:52 +02:00
buildscript.lisp working cors and auth and also now binary build. Whoop 2025-06-19 21:06:51 +02:00
create-session.sql Refactoring and working cors and auth session management 2025-06-18 15:46:01 +02:00
docker-run.lisp ensure that db connection only happens on start and refurbished README a bit 2025-08-17 17:39:40 +02:00
Dockerfile ensure that db connection only happens on start and refurbished README a bit 2025-08-17 17:39:40 +02:00
front-office.asd refactoring and cleaning up 2025-08-18 17:48:34 +02:00
init-db.sh fixed api row crud operations 2025-07-13 12:16:09 +02:00
LICENSE Initial commit 2025-06-17 12:36:02 +02:00
README.md fixed multiple thread problem when building docker image 2025-08-17 17:53:14 +02:00
save-core.lisp fixed multiple thread problem when building docker image 2025-08-17 17:53:14 +02:00
setup-build.lisp working cors and auth and also now binary build. Whoop 2025-06-19 21:06:51 +02:00

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 .