This is a, small, blog application powered by Markdown files with Yaml frontmatter. It uses the Slim Framework to glue everything together, as Slim is a light, nimble, and extremely flexible framework for web-based applications.
It was written as part of a two-part series for the Twilio blog.
Depending on how you use the application, your prerequisites will differ.
If you're using Docker Compose (I recommend version 2), you only need, naturally Docker Compose, and Docker Engine.
Want to learn the essentials of Docker Compose as quickly as possible? Grab a copy of the book I wrote about it: Deploy With Docker Compose. It's free!
If you're not using Docker Compose, then you will need the following:
- A Memcached server
- Composer installed globally.
- PHP 7.4+ (ideally version 8) with the Memcached extension installed and enabled.
To use the application, clone it locally and change into the cloned directory, by running the following commands.
git clone https://github.com/settermjd/slimphp-markdown-blog.git slim-framework-markdown-blog
cd slim-framework-markdown-blog
To start the application using Docker Compose, run the command below.
docker-compose up -d
If you're not using Docker Compose, you'll have to set up a virtual host in your web server of choice, which is outside the scope of this README.