Skip to content

oestrich/lyhyt

Repository files navigation

Lyhyt

A URL shortener written with Aino. Lyhyt means "short" in Finnish.

Setup

PostgreSQL is required and should be setup via your package manager or Postgres.app.

Via Nix

Install the nix package manager by following their multi-user installer. Once nix is installed, setup direnv by hooking into your shell.

nix-env -f '<nixpkgs>' -iA direnv
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc

Once direnv is installed and your shell is restarted, clone the project and cd into it. You should see direnv warn about an untrusted .envrc file. Allow the file and finish installing dependencies and setting up the application.

direnv allow

setup # bin/setup
server # bin/server

You can load the application by going to http://localhost:3000/.

Via asdf

Install asdf-vm. Once installed you can run setup.

bin/setup
bin/server

You can load the application by going to http://localhost:3000/.

Tests

You can run the CI test suite via bin/verify.