No description
Find a file
2025-10-08 18:29:45 +02:00
backend Adds possibility to post reviews 2025-10-08 11:57:03 +02:00
frontend Adds Markdown Support, polish 2025-10-08 18:29:45 +02:00
shared/src/app/cocksmith Adds Markdown Support, polish 2025-10-08 18:29:45 +02:00
sql Adds Markdown Support, polish 2025-10-08 18:29:45 +02:00
.gitignore Implements routing, header 2025-08-06 15:27:07 +02:00
.scalafix.conf first commit 2025-08-01 13:50:53 +02:00
.scalafmt.conf first commit 2025-08-01 13:50:53 +02:00
build-deps.mill starts loading stuff from backend 2025-08-08 14:49:20 +02:00
build-scalac-config.mill restructures build to support scalajs frontend 2025-08-06 12:17:35 +02:00
build-traits.mill restructures build to support scalajs frontend 2025-08-06 12:17:35 +02:00
build-versions.mill Bumps versions, shows company reviews 2025-10-07 17:53:51 +02:00
build.mill Adds login page 2025-08-19 11:34:55 +02:00
docker-compose.yml Adds login page 2025-08-19 11:34:55 +02:00
mill.bat first commit 2025-08-01 13:50:53 +02:00
README.md Bumps versions, shows company reviews 2025-10-07 17:53:51 +02:00

Fundamentals

  • Use Powershell 7 if you have to

  • make sure to use metals for scala extension

  • have docker installed

  • ./mill mill.scalalib.Dependency/showUpdates to check for dependency updates.

dev and testing

  • docker-compose up to start the postgres dev container.
  • cd frontend && npm run dev to have vite watch for changes and automatically restart the frontend server.
  • ./mill -w backend.runBackground to watch for changes and automatically restart the backend server.
  • ./mill -w frontend.fastLinkJS to compile and copy over the frontend javascript.
  • docker exec -it cocksmith-db-1 psql -U docker to connect to the postgres instance. You then connect to the database with \c <database_name>.

WSL

# install coursier, jvm, scala
curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup
# install mill - actually you need the powershell version, but leaving this for linux
curl -L https://github.com/com-lihaoyi/mill/releases/download/0.10.15/0.10.15 > mill && chmod +x mill
# install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# install node
nvm install 22