Blogging SoftwareSunday, 27 Sep 2015, 01:16
By SimonMy all new Blog
I recently switched my hosting provider and I upgraded to an cheap dedicated server by ovh So I started migrating all my data and I decided to speed up my software stack a little bit by replacing apache with nginx. I was never quite satisfied with the speed of my old website, but - so I thought - with this new dedicated server everything should be faster.
When I finally had everything ready I notice that the loading time for the webpage is over 500ms just to load the HTML.
I decided this can’t be and since I always wanted to get started with Go I decided to use a nice webframework named revel and build my own blogging software.
This is the result
Of course most javascript and css resources are now cdn hosted, but the rendering and delivery of the html page happens in under 50ms
I also optimized it a little bit more for mobile devices, the resulting website scores much better on Google’s PageSpeed Insights The blog code is just a few hundred lines of go code + lots of template code.
If you’re interested you can have a look at the code on github
Thanks to alle the people who wrote the components this software builds on:
- https://github.com/russross/blackfriday
- https://github.com/robfig/revel
- https://github.com/mattn/go-sqlite3
- http://ace.c9.io/
- http://code.google.com/p/pagedown/
- https://github.com/jmcmanus/pagedown-extra
- http://jquery.com/
- http://getbootstrap.com/
And of course https://github.com/hermanschaaf/ironzebra for inspiration