@samth typed racket package stats, computed using the functions in this module: https://gist.github.com/jackfirth/4f365d0f4380788342871fe65d0a2604
@notjack here’s what I ended up with: https://github.com/Bogdanp/racket-libsass/blob/dc1d4fc86dc3f0b017328a165b030773d2c4fba3/.github/workflows/push.yml
@popa.bogdanp I love it, the github actions + git submodules combo seems like it has a lot of potential for racket ffi packages
@popa.bogdanp Thanks! Totally missed that #:extension
could be used.
Anyone wants to kick the tires? https://racket-stories.com It’s up temporary to test a few things. Users / links etc won’t survive.
Feedback welcome.
Nice!
is it open source @soegaard2?
ahhh found the about section …
Yes, the current version is in the subdir listit4.
pls don’t take this as a criticism, but with the model … is there a reason to setup the DB privately within that files context? in most applications ive built ive usually tried to pull the db out to the very top level and inject anywhere needed to make testing easier
not saying its wrong, just currious if there is a technique thats common in the racket world that maybe im missing, or maybe its a principles thing (you aint gunna need it / over engineering sorta thing)
Comments are indeed welcome. There is no grand reason. The initial tutorial had 3 files: “model.rkt”, “control.rkt” and “view.rkt” in order to make it clear what the MVC pattern means.
When “model.rkt” grows I plan to make a “model” folder and split the contents.
At that point the database setup will get its own file.
coolio :slightly_smiling_face:
My own approach to building web apps in Racket (https://github.com/Bogdanp/koyo/blob/master/koyo-lib/blueprints/standard/app-name-here/dynamic.rkt#L25) is along these lines. It’s a lot more boilerplate-y than what @soegaard2 has done with racket-stories, though :smile:.
TIL: you can have multiple languages #lang at-exp racket/base
:slightly_smiling_face:
is there no link for urlang/html
?
It’s a wrapper for scribble/html
with a few extra bits. But here is no documentation. https://github.com/soegaard/urlang/tree/master/urlang/html
wow! impressive body of work there Bogdan, gunna star that for later reading :smile:
@soegaard2 one thing that I’d love to see is github login
the shop as well? the checkout screen looks like shopify maybe? (or do great artists steal ? :wink: )
Good idea!
would be nice to have a library that just did it for you
Yeah, the whole thing. I did steal a bunch of design ideas from all over the place (incl. Shopify) :stuck_out_tongue:
I looked at Google Sign-In the other day - but needed a real domain to try it.
impressive stuff. is it posted on any “built with racket” sort of pages/places??
I don’t know. It might be on the wiki. I did write an experience report about it a while back: https://defn.io/2019/08/20/racket-ecommerce/