Marker - pt. 2

New name

Like all other cool projects, I decided to rename this from Markdown Blog to Marker. Cool, right!

Starting TDD

The first couple of tests were pretty basic, ensuring content showing on frontpage and that the structure folder exists.

Blog post folder structure

I started working on a console command to create new post folder structure and config, and didn't really know how I wanted it to end up, so didn't start the test for it.

Now I have a pretty good idea about how it should work, and what parts it is using.

So I've created a PostStructure class for handling post structure, which I've written tests for.

The idea is that I might create some kind of dashboard to upload posts as well, which then also will use that class.

Functionality and tests are done for this class, although I might refractor it along the way. But this is a pretty good first step towards the goal.

Tests are green and console command does as expected, it creates the folder with a sluggified version of the title and it creates a config.yaml file with the supplied information from the console command using Laravel Prompt.

Final thoughts

I'm think its getting easier to think about the tests first, even if they are pretty basic right now.

// ASH