No description
| backend | ||
| frontend | ||
| shared/src/app/cocksmith | ||
| sql | ||
| .gitignore | ||
| .scalafix.conf | ||
| .scalafmt.conf | ||
| build-deps.mill | ||
| build-scalac-config.mill | ||
| build-traits.mill | ||
| build-versions.mill | ||
| build.mill | ||
| docker-compose.yml | ||
| mill.bat | ||
| README.md | ||
Fundamentals
-
Use Powershell 7 if you have to
-
make sure to use metals for scala extension
-
have docker installed
-
./mill mill.scalalib.Dependency/showUpdatesto check for dependency updates.
dev and testing
docker-compose upto start the postgres dev container.cd frontend && npm run devto have vite watch for changes and automatically restart the frontend server../mill -w backend.runBackgroundto watch for changes and automatically restart the backend server../mill -w frontend.fastLinkJSto compile and copy over the frontend javascript.docker exec -it cocksmith-db-1 psql -U dockerto 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