Saturday, December 12, 2020

How I set up this blog

Implemented these steps:

  1. Created html pages and a css file (index, blog, about), just to design it and get it ready for initial deployment
  2. Took a server from digital ocean (servers are called droplets)
  3. Took a domain from godaddy. Set up that domain to hit my server IP address
  4. Installed nginx, added files to
    /var/www/<folder to host>
    http started working!
  5. Installed certbot, ran
    certbot --nginx
    and followed the guided steps. https started working!
  6. Static pages sucked, rewrote the blog in react. Added markdown files as pages... turns out it sucked, too
  7. Brainstormed how to deal with blog posts without adding complexity of frameworks, tools, servers, cms generators etc
  8. Turns out, blogger (by google) has got a neat API to pull blog posts. So I can write posts in blogger, but display it however I want to code it. Here is their guide: https://developers.google.com/blogger/docs/3.0/using
  9. Implemented the API in react. Their guide does not mention what your blogger blogId is, but you can take a look at your blogs source code and lookup blogId. Also added https://github.com/googlearchive/code-prettify for any code that i need to write in blog posts.

 

No comments:

Post a Comment