jaspervz / todo-http4s-doobie Goto Github PK
View Code? Open in Web Editor NEWA sample project of a microservice using http4s, doobie, and circe.
A sample project of a microservice using http4s, doobie, and circe.
Hi @jaspervz ; I just saw your post about this on LinkedIn and was interested. Nice work!
No front end is included for your API in order to try it out. That wouldn't fit the microservices approach, so I get that.
But could you describe - in the README.md - an example how to test this? For instance how to make a JSON post request to add a todo. Since at the start it seems empty, there are no test todo's; e.g. I get []
back from /todos
. Or you could seed the H2 database to have test data.
Or perhaps there is something wrong with running h2? I'm not familiar with this, how can I test this separately?
I tried to add a todo with a POST request via POSTman as you can see in the following screenshot. After some trial and error I didn't get an error back anymore, but still it seems like no todo was added. Or is there still a bug? Or is the
The cats-effect module for PureConfig provides a loadConfigF
function, which can replace most of the code in your config
package object.
Great example project BTW ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.