{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
import Yesod
data App = App
mkYesod "App" [parseRoutes|
/ HomeR GET
|]
instance Yesod App
getHomeR :: Handler Html
getHomeR = defaultLayout [whamlet|Look at me. Just one file.|]
main :: IO ()
main = warp 3000 AppManifest: A 1-file micro-back end
21–30 of 49 posts
Re: Manifest: A 1-file micro-back end
#22Earlier quoted context omitted.
Um, "snarky"? How do I ask "is this last element optional, and does it have to be an emoji?" without snark? And it's the most egregious (in the "glaring" sense, not "outlandishly awful") things about the example, you don't often see emojis being a part config/programming languages outside of embedded strings, everything else is pretty self-explanatory dialect of YAML. The use of emojis looks quite similar to the way…
> SINGLE_EMOJI_COMMENT Bwahahaha. Sorry, I’ve just imagined the poor sod who has to implement this grammar and has to decide whether presentation selectors or (potentially unknown) ZWJ sequences or (potentially unknown) letter-pairs denoting flags count parts of as single emoji (in theory they do[1], but good luck figuring out what tables you need). > the way parameter/argument labels are introduced in Swift: in the…
Re: Manifest: A 1-file micro-back end
#23Re: Manifest: A 1-file micro-back end
#24I tried to search for "migration" in the docs but found nothing ? What do you do if you want to modify your schema?
Re: Manifest: A 1-file micro-back end
#25For a 1-file micro-backend this sure does have a lot of files and dependencies.
Re: Manifest: A 1-file micro-back end
#26The idea is interesting. I wonder what makes it AI-friendly. It isn't explained on the repository or the website, but I can imagine that the YAML-based DSL could be the reason.
But you are right we should explain it somewhere !
Re: Manifest: A 1-file micro-back end
#27Re: Manifest: A 1-file micro-back end
#28I tried to search for "migration" in the docs but found nothing ? What do you do if you want to modify your schema?
Hello ! Manifest dev here, they are on the way ! There is a DB sync at the moment that does the job but we are going to implement the migrations soon :)
Re: Manifest: A 1-file micro-back end
#29I'd love to see a frontend for this. Most CMSs are either tailored specifically for blogs or are complicated to set up. I've often wanted something like I guess Access or Filemaker Pro (if anyone remembers that) but with a modern UI and database. Not for production use, mind you, just like, say I have a library of books or blu-rays and want to create a catalogue of them (with images, so a spreadsheet is a no-go). Bei…
Looks like there is an admin panel demo, but can't find the login/password
Re: Manifest: A 1-file micro-back end
#30It feels a bit mean to write this, but whenever someone reinvents a database this is the first thing I look to gain some confidence the authors understood what they were getting into.
Probably best to stick to sqlite instead!