{"componentChunkName":"component---src-templates-article-js","path":"/the-return-of-the-jedi-1","result":{"data":{"markdownRemark":{"html":"<p>I'm back! This is my first time writing something here in months since I haven't had much time (nor motivation, to be honest) recently since I've been focusing on my thesis and a couple other things. Nevertheless, I've got a bunch I want to write about, so I'll be breaking this post into different parts, so stay tuned!</p>\n<ul>\n<li>Part 1 - You're here!</li>\n<li>Part 2 - <a href=\"https://blog.ruialves.me/the-return-of-the-jedi-2\">Insights on my MSc Thesis</a></li>\n<li>Part 3 - <a href=\"https://blog.ruialves.me/the-return-of-the-jedi-3\">Finally an Engineer and next steps</a></li>\n</ul>\n<hr>\n<p>For the past few years, I've been developing and maintaining my chess club's (Grupo de Xadrez do Porto) website in my free time, as I've mentioned in a <a href=\"https://blog.ruialves.me/a-meteoric-regret\">previous post</a>. The website was developed using <code>Meteor</code> and features a bunch of information about the club's activities, players, and a few other things. I initially started by hosting it using <code>AWS</code> free tier, which offers a low-budget VPS. After the free tier terminated, the club decided to extend the <code>AWS</code> hosting for another year.</p>\n<p>In terms of domain management, the club has been renewing the same domain for years and years now. Initially, the domain was being managed at <a href=\"https://www.dns.pt/pt/\">dns.pt</a>, which is terrible in terms of management flexibility. I \"upgraded\" the management to <a href=\"https://www.dominios.pt/\">dominios.pt</a> which, although it wasn't perfect, was surely a big improvement.</p>\n<p>However, in the end of the last year, it was brought to my attention by a <a href=\"https://miguelpduarte.me/\">good friend</a> that <code>CloudFlare</code> was not only pretty neat for domain management, but also the first company to offer SSL/TLS protection free of charge and without bothersome configuration. Since I had some free time on my hands, I decided to go all-in with <code>CloudFlare</code>, and I am very happy with the results. The process took less than a couple of hours, and I've then started using <code>CloudFlare</code> for my personal domain as well — It is a game-changer.</p>\n<p>While I was at it, I also decided to make some changes to the website itself. Since it was hosted in an <code>AWS</code> IaaS, managing updates and adding new features was at times a bit cumbersome and not as automatic as I would like. After doing some digging around the <em>internets</em>, I found out that <code>Heroku</code> free tier features a <code>Meteor</code> buildpack which facilitates the deployment process. I then created a staging instance to check if it was \"solid\" enough to hold up in production, and did a bit of load testing using <code>Locust</code> to check if it held up with some traffic in its hands. Since we don't have (and won't have any time in the near future) a large number of people accessing the website, it proved to be more than enough. I have then deleted the <code>AWS</code> instance and moved everything to <code>Heroku</code>, and I now have a much easier time pushing updates and changes to production. Additionally, it was also quite easy to configure the custom domain in the <code>Heroku</code> PaaS instance — I simply added the domain and received a DNS target that allowed me to create a CNAME record in <code>CloudFlare</code>, easy peasy!</p>\n<p>Finally, I also added a couple of new features to the website's management dashboard. Firstly, I added the capability of bulk editing players info, which is pretty useful, specially in the beginning and ending of tournament-season. Additionally, I enhanced the updating of photos (some of the pictures were hard-coded, which was far from ideal 😬) and did some minor tweaks in styling here and there. I'm finally <em>moderately</em> happy with <a href=\"https://www.gxp.pt\">the website</a> 😅</p>\n<hr>\n<p>In the following parts, I'm going to be writing a little bit about some side projects, my thesis, and my future work plans.</p>\n<p>Cheers!</p>","frontmatter":{"date":"03 July, 2021","slug":"the-return-of-the-jedi-1","title":"The Return of the Jedi - Part 1"}}},"pageContext":{"slug":"the-return-of-the-jedi-1"}},"staticQueryHashes":["3649515864","63159454"]}