{"id":23748362,"url":"https://github.com/raayan/boiler-mill-scala","last_synced_at":"2026-05-04T13:31:12.638Z","repository":{"id":148742150,"uuid":"280759535","full_name":"raayan/boiler-mill-scala","owner":"raayan","description":"A boilerplate Scala project using Mill for builds with a side of Slick and Postgres ","archived":false,"fork":false,"pushed_at":"2020-07-23T02:37:24.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-24T19:08:41.999Z","etag":null,"topics":["code-generation","mill","postgresql","scala","slick"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raayan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-18T23:52:04.000Z","updated_at":"2020-07-23T02:37:26.000Z","dependencies_parsed_at":"2023-05-28T19:45:28.742Z","dependency_job_id":null,"html_url":"https://github.com/raayan/boiler-mill-scala","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/raayan/boiler-mill-scala","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raayan%2Fboiler-mill-scala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raayan%2Fboiler-mill-scala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raayan%2Fboiler-mill-scala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raayan%2Fboiler-mill-scala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raayan","download_url":"https://codeload.github.com/raayan/boiler-mill-scala/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raayan%2Fboiler-mill-scala/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32609332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-generation","mill","postgresql","scala","slick"],"created_at":"2024-12-31T15:00:38.163Z","updated_at":"2026-05-04T13:31:12.608Z","avatar_url":"https://github.com/raayan.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scala with Mill Boilerplate\n\nThis boilerplate repository serves as a place to play around with Scala, Slick, code-generation and hopefully more.\nIt uses [lihaoyi's](https://github.com/lihaoyi/) *nifty af* built tool: Mill.\nSo far it's been pleasant to use and way more fun than using sbt and far less arduous than using bazel.\n\n- **[Mill](https://github.com/lihaoyi/mill)** as our build tool\n- **Scala 2.12.10** as our language 😉\n- **[Slick](http://scala-slick.org/doc/3.3.2/introduction.html)** to type-safely query our db, and some neat generated code\n- **[PostgreSQL](https://www.postgresql.org/download/macosx/)** for _databasing_\n \n## Getting Started\n\nIf you're using macOS and you haven't already, grab [Homebrew](https://brew.sh) it makes package management on macOS much easier.\nOtherwise, head over to [Mill's website](https://www.lihaoyi.com/mill/index.html).\n\nGet mill\n```zsh\n$ brew install mill\n``` \n\nClone down this repo and navigate to it\n```zsh\n$ git clone git@github.com:raayan/boiler-mill-scala.git\n$ cd boiler-mill-scala\n```\n\nGet postgres\n```zsh\n$ brew install postgresql\n```\n\nStart postgres up\n```zsh\n$ brew services start postgresql\n```\n\nList all the databases on our Postgres server\n```zsh\n$ psql -l\n                                     List of databases\n     Name     |    Owner     | Encoding |   Collate   |    Ctype    |   Access privileges   \n--------------+--------------+----------+-------------+-------------+-----------------------\n postgres     | postgres     | UTF8     | en_US.UTF-8 | en_US.UTF-8 | \n raayanpillai | raayanpillai | UTF8     | en_US.UTF-8 | en_US.UTF-8 | \n template0    | postgres     | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres postgres=CTc/postgres\n template1    | postgres     | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres postgres=CTc/postgres\n(5 rows)\n```\n\nIn this sample application we use a database called `zoo` as you can see it's not here yet.\n\nLet's create the db\n```zsh\n$ psql -c 'CREATE DATABASE zoo;'\nCREATE DATABASE\n```\n\nThen let's run some SQL to do some setup\n```zsh\n$ psql zoo -f zoodb/tables/src/main/resources/sql/zoodb.sql\nCREATE TYPE\nCREATE TABLE\nINSERT 0 10\n```\n\nThat SQL script created a `pg_enum`, a table called `animals` and inserted 10 rows of sample data.\n\nNow run the following `mill` command to run the template app\n```zsh\n$ mill app\n```\n\nYou should see some heating up, compiling and then finally:\n\n```zsh\n[main] INFO app.Application$ - Connecting to DB\n[main] INFO zoodb.profile.ZooDbPostgresProfile -  \u003e\u003e\u003e binding uuid -\u003e java.util.UUID \n[main] INFO zoodb.profile.ZooDbPostgresProfile -  \u003e\u003e\u003e binding text -\u003e java.lang.String \n[main] INFO zoodb.profile.ZooDbPostgresProfile -  \u003e\u003e\u003e binding bool -\u003e Boolean \n[main] INFO app.Application$ - \nQuery Results:\nAnimalsRow(1,2A44259755D38E6D163E820,Cetacea)\nAnimalsRow(2,9CAA6E02C990B0A82652DCA,Dasyuromorphia)\nAnimalsRow(3,FE97759AA27A0C99BFF6710,Afrosoricida)\nAnimalsRow(4,124A10E0DB5E4B97FC2AF39,Erinaceomorpha)\nAnimalsRow(5,2BCC25A6F606EB525FFDC56,Cingulata)\nAnimalsRow(6,062936A96D3C8BD1F8F2FF3,Peramelemorphia)\nAnimalsRow(7,EAE257E44AA9D5BADE97BAF,Scandentia)\nAnimalsRow(8,9B086079795C442636B55FB,Perissodactyla)\nAnimalsRow(9,568161A8CDF4AD2299F6D23,Macroscelidea)\nAnimalsRow(10,9908345F7439F8FFABDFFC4,Pilosa)\n\n[main] INFO app.Application$ - \nInsert Result:\nAnimalsRow(11,Polo,Carnivora)\n```\n\n### Intellij Configuration\n\nRunning the following mill command will properly configure the project with Intellij and then open it.\n```zsh\n$ mill mill.scalalib.GenIdea/idea\n$ idea .\n```\n\nThat's really all there is to at the moment!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraayan%2Fboiler-mill-scala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraayan%2Fboiler-mill-scala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraayan%2Fboiler-mill-scala/lists"}