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.
- Host: GitHub
- URL: https://github.com/bogdanp/koyo-shorty
- Owner: Bogdanp
- Created: 2020-10-18T17:59:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-18T17:59:50.000Z (over 4 years ago)
- Last Synced: 2025-02-08T21:30:21.188Z (2 months ago)
- Topics: lisp, racket, scheme, tutorial, web
- Language: Racket
- Homepage: https://www.youtube.com/watch?v=DS_0-lqiSVs
- Size: 101 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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