DEV Community

Create a blog with Svelte and DEV.to API

JPBlancoDB on November 24, 2019

We are going to create a Blog using dev.to API for retrieving our posts and finally deploy it with Now. Demo: https://jpblanco.dev Source: https:/...
Collapse
 
gerbosan profile image
Carlos A.

Interesting, though what I liked the most is the definition of the layout first and the logic is presented later, I'm new to this wizard stuff called software development. Thanks.

PS: Please, don't forget to describe where the Header.svelte file goes and where is has to be described to be present in the page. (_layout.svelte)

Collapse
 
jpblancodb profile image
JPBlancoDB

Hi Carlos! You are right, I will add it to the article, thank you for reading and the review! šŸ’Ŗ

Collapse
 
igorfilippov3 profile image
Ihor Filippov • Edited

Really good article! But I have something to add. According to this doc it is not good idea to place a block tags into inline. I suppose it can be important for people who are new to web development and do not know what is good and what is bad practice.

Collapse
 
jpblancodb profile image
JPBlancoDB

Hi Igor! Thanks for reading! Regarding your comment, Iā€™m not following which part of this example is a bad practice.
The <span> is inline by default, actually is also given as an example in that doc.
I would appreciate if you could tell me exactly which part are you referring to.

Thank you!

Collapse
 
ben profile image
Ben Halpern

Cool!!

Collapse
 
jpblancodb profile image
JPBlancoDB

Thank you Ben!! Cool is dev.to šŸ˜œšŸ˜Ž

Collapse
 
steeve profile image
Steeve

The dev.to API seems really interesting, thanks for this article. šŸ‘Œ

Collapse
 
jpblancodb profile image
JPBlancoDB

Indeed! Thanks for reading!

Collapse
 
drdougtheman profile image
drdougtheman

Why did you moved your page to Zeit? Do you still like Svelte?

Collapse
 
jpblancodb profile image
JPBlancoDB

Hi! I like Svelte, I still found a little bit challenging doing TDD with it as for example you cannot stub the slots (the PR is still open as far as I know) and found complex to mock other components, but I still think is great coding experience, easy to learn and start with it, definitely give it a try and tell me your experience! Regarding zeit, I've just deployed it there because it is an amazing platform, easy to deploy and has a free tier that works great also for this kind of example. Thanks for reading!