An open API service indexing awesome lists of open source software.

https://github.com/bogdanp/koyo-shorty

Associated code for the "Racket Web Development with Koyo" screencast.
https://github.com/bogdanp/koyo-shorty

lisp racket scheme tutorial web

Last synced: 21 days ago
JSON representation

Associated code for the "Racket Web Development with Koyo" screencast.

Awesome Lists containing this project

README

        

# shorty

## Setup

### Requirements

* You need [Racket] since this is a Racket application.
* You need [node] and [nvm] to build the assets.
* You need access to a couple local [Postgres] databases. One named
`shorty` and the other `shorty_tests`. The latter is
exercised by unit tests.

### First-time Setup

$ nvm use && npm install && npm run build
$ raco pkg install chief
$ raco pkg install shorty/ # install and build the application and its deps
$ raco pkg install shorty-tests/ # install and build the tests and their deps

### Development environment

Copy `.env.default` to `.env`. [chief] will automatically load the
variables defined in this file into the environment of the
subprocesses defined in the `Procfile` whenever it is run.

The app expects to be run behind an SSL terminated connection (for
example, behind an nginx instance using a self-signed cert), even for
local development . You can disable this requirement by setting
`current-continuation-key-cookie-secure?` parameter to `#f` before the
application is started.

## Running the app locally

$ nvm use
$ raco chief start

[Postgres]: https://www.postgresql.org/
[Racket]: https://racket-lang.org/
[argon2]: https://www.argon2.com/
[chief]: https://github.com/Bogdanp/racket-chief
[node]: https://nodejs.org/en/
[nvm]: https://github.com/nvm-sh/nvm