https://github.com/ramytanios/tldev
Set of utilities built on top of the Typelevel stack
https://github.com/ramytanios/tldev
nix scala typelevel
Last synced: 7 months ago
JSON representation
Set of utilities built on top of the Typelevel stack
- Host: GitHub
- URL: https://github.com/ramytanios/tldev
- Owner: ramytanios
- License: apache-2.0
- Created: 2024-06-16T06:40:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-29T21:19:54.000Z (about 1 year ago)
- Last Synced: 2025-03-29T22:24:31.035Z (about 1 year ago)
- Topics: nix, scala, typelevel
- Language: Scala
- Homepage:
- Size: 108 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tldev
A minimal set of utilities for developing microservices, built on top of the [Typelevel](https://typelevel.org/) stack.
> [!NOTE]
> Currently only supports scala 3. You can try a [snapshot](https://github.com/ramytanios/tldev/packages)
> [!IMPORTANT]
> Unauthorized access to the Github Registry is currently not possible (see [discussion](https://github.com/orgs/community/discussions/26634)). The preferred method
> is to generate a [Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) with `read:packages` permissions and set it as an
> environment variable, i.e `GITHUB_TOKEN`.
Add to `build.sbt`:
```scala
Global / resolvers += "GitHub Package Registry" at "https://maven.pkg.github.com/ramytanios/tldev"
ThisBuild / credentials += Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
"",
sys.env.getOrElse("GITHUB_TOKEN", "")
)
```
```scala
"io.github.ramytanios" %% "tldev-http" % ""
"io.github.ramytanios" %% "tldev-core" % ""
"io.github.ramytanios" %% "tldev-postgres" % ""
```
## Development
> [!TIP]
> For a smooth development experience and to benefit from the existing development shell, we recommend
> 1. Install [Nix](https://nix.dev/install-nix.html)
> 1. Enable [Nix flakes](https://nixos.wiki/wiki/Flakes)
> 3. Install [direnv](https://direnv.net/)
## Examples
Try the examples by running `examples/run` in sbt.