My personal blog written mostly in Scala and Java.
Trying finally tagless with extensive effects.
- version:
0.4.2
Scala3the programming languageJavathe programming language for better performenceJVMthe runtimesbtthe build toolcatsandcats-effectfor corescala.jsandscalatagsfor front endcircefor Json processinghttp4s,doobieandquillfor back end
- Please refer to the configuration file
- Please refer to the Skeleton guide
- The Skeleton online repl! You can try Skeleton directly on web page! Check Skeleton notebook
- Please refer to the Development log
The HTTP server is modeled as a simple function:
Request[F] => OptionT[F, Response[F]]
where F is the computation effect.
All trait are parameterized with computation effects (e.g. F[_]).
One can easily extend more implementations of
the program without changing any existed code.
Using The ReaderT pattern.
Just given the static blog configuration, then everything done!
given blog.Configuration = Configuration.staticBloggiven blog.Configuration = Configuration.onlineBlogcd <this folder>sbtcompileserver/run- Go to http://localhost:8080/
cd <this folder>sbtcompileskeleton/run register <skeleton script file path> <new blog title>