Skip to content

brokenhandsio/SteamPressExample

Repository files navigation

SteamPress

SteamPress Example Site

Language Build Status Code Coverage MIT License

This is an example site for using SteamPress with your Vapor website. You can also just use it as your blog! This example site uses Bootstrap 4 for styling so should be fairly easy to make it look how you want. It also uses Markdown to render the blog posts, and has Syntax highlighting for code (obviously!). This site can be viewed at https://www.steampress.io/.

This site also provides a good example for all the Leaf files you will need, and the parameters they are given, as well as what you need to send to SteamPress to be create users and posts etc.

Features

  • Code syntax highlighting
  • WYSIWYG Markdown editor
  • Tagging selection
  • Content Security Policy and other security headers
  • Embeddable tweets
  • Facebook/Twitter share buttons
  • Blog post editor auto saving
  • Open Graph/Twitter Card support
  • Blog Post comments, powered by Disqus
  • Custom 404 error page

Usage

To try out (you will need Docker installed):

git clone https://github.com/brokenhandsio/SteamPressExample.git
cd SteamPressExample
./setupDB.sh
swift run

This will create a site at http://localhost:8080. The blog can be found at http://localhost:8080/blog/ and you can login at http://localhost:8080/blog/admin/. The first time you visit the login a user will be created and the details printed to the console.