Playing
01. Introduction and demo

Transcript

00:00
Okay, so in this course, we are going to be building out a static file blog with Maravel by that
00:06
I mean all of the blog posts that you see here We've just got two at the moment, but of course there could be more are driven by files So to create a new blog post we go ahead and create a new file with a date We give some details like the author
00:20
The tags and of course the content plus a little teaser and that will be shown on this page And of course we can click into these it's very very quick Of course, we're not hitting the database at all here and you can see everything is rendered out We're rendering out this in markdown
00:36
Which means that of course we can do cool stuff like syntax highlighting a bunch of other stuff as well Anything that markdown supports we are also going to be building in the ability to tag each of our posts So for example I can click on the Laravel tag and see everything that has been tagged under Laravel
00:55
And of course I can click on another tag and this tag just happens to have two posts associated with it so pretty much everything you would expect a Basic blog to do we're gonna be building out completely from scratch. We're not gonna be using any starter kits or anything like that We're just gonna go ahead and freshly install Laravel and start to build all of this out
01:17
Let's just take a really quick look at one of these blog posts just so you can get an idea about how these are built Up, you can see here that between these hyphens these three hyphens We've got all of the metadata that we want to include obviously the title the author The teaser and the tags listed as an array and then just underneath this we just start writing. So we just write out our
01:39
blog post as we normally would we use standard syntax highlighting that we would have find in markdown and Everything is good. So super easy to just create a file with this kind of format so the date will be included and the Slug will be included in the actual file name and then you just go ahead and write your blog and it will appear just here
02:00
And of course because we are working with flat files If we give this a refresh you can see that the page has taken 40 milliseconds to load this index And of course for each of the individual blog posts as well You can see what kind of times we're running here 26 milliseconds to render this out so it is incredibly fast
02:19
Okay, so let's jump over to the next episode if you're slightly newer to Laravel We'll do a little bit of setup We'll get Tailwind installed so we can style this although you can choose anything You want to style this up and let's build this out together
13 episodes1 hr 11 mins

Overview

Let's build a ridiculously fast blog from scratch in Laravel, entirely driven by markdown files. No database required!

Your blog will feature everything you're used to, like syntax highlighting, post tagging and pagination. Plus, it'll render in record time.

Once you're done with the course, you'll be able to add on additional features with ease, style it up how you want and quickly create new posts since there's no need for an admin panel.

Alex Garrett-Smith
Alex Garrett-Smith
Hey, I'm the founder of Codecourse!

Comments

No comments, yet. Be the first to leave a comment.