blog/_posts/2018-01-07-geek-mexicain-fr...

82 lines
4.5 KiB
Markdown

---
title: "Geek Mexicain : From what we had to what we want"
date: 2018-01-07
layout: post
category: Articles
image: /img/blog/geek-mexicain-frow-what-we-had-to-what-we-want.png
---
[![A missing blog post image](/img/blog/geek-mexicain-frow-what-we-had-to-what-we-want.png)](/img/blog/geek-mexicain-frow-what-we-had-to-what-we-want.png)
### Introduction
If you're visiting this website, you surely already know that I manage a part of [GEEK MEXICAIN](https://geek-mexicain.net/) association, and even write sometimes articles there.
Recently, GM got a very important upgrade (mainly handled by @MikeScops), and I wanted to do sort of an abstract of what happened to this website.
During the previous year (happy new year by the way if you're reading this during 2018's early days :tada:), we discovered many interesting stuffs powering some parts of the _world wide web_ and wanted to use them in order to drastically improve the experience of users browsing our site.
### What we had
Historically, GM was running a simple _WordPress_ instance on the old PHP 5.
It did its time, but we were very very **VERY** tired of _WordPress_ and its monthly new security issues.
For database management, the server was simply running _PHPMyAdmin_, well known for its slowness ([and security aspects too ?](https://www.phpmyadmin.net/security/PMASA-2017-9/)).
Our statistics system was built upon the famous _Google Analytics_ tracker, and I was not specially proud of it.
### What we want
Our goal was (and still is) a **fast website**, **easy to contribute to** for redactors, and **easily tweakable** for developers.
#### Back-end and CMS
As [Corentin](https://pixelswap.fr/) knows very well an interesting alternative CMS named [Bolt](https://bolt.cm), he decided to build the "new GM" upon it ; I totally agreed with him.
Some months later, we can happily say that was a success :smile:
> Migrating to _Bolt_ made us upgrading to PHP 7, and the difference had been seen instantly !
#### Statistics
2016 and 2017 were years of public-discovering about what some companies / legal entities are actually doing with OUR data.
Thus, we wanted a website like there is not many of them : only a few dependencies and no third-parties scripts for a privacy-focused experience.
That's why we keenly replaced _Google Analytics_ by our own [Matomo ~~Piwik~~](https://matomo.org/) instance.
_Matomo_ is a very interesting program that actually should be running everywhere. It allows you to customize in many many ways what you want to retrieve, and what you want to see. With your own instance, you may finally work on data that **YOU OWN**. Your visitors will only have to trust you for not re-selling them, but that's already likely the case if they are browsing your website :wink:
Once it has been installed and working, we did the same on [mySetup.co](https://mysetup.co) :+1:
Furthermore, we decided to free GM from many external resources loaded from third CDN providers (too bad for the performance gain lost, but we think some additional milliseconds are better than a privacy hole as a CDN could be).
#### Database management
About DB, I personally wanted to try out [Adminer](https://www.adminer.org/).
After some days of usage, I've found out this program "fixes" all the main flaws of _PHPMyAdmin_ :
* Very fast
* Secure (?)
* Easy to use !
* Actively maintained
* Easy to install and upgrade (only one **.php** file = no dependency issues)
* Easily customizable (we only have to place a **.css** style-sheet alongside the **.php** file)
Maybe it does less, but it does it better :ok_hand:
#### And beyond the "sysadmin" and "web development" parts ?
This summer the official logo has changed. It marked the new beginning of GM, and a starting point for the upcoming changes.
The main issue we had to go through was the migration from _WordPress_ to _Bolt_ (But is this not the main problem when we are changing the CMS anyway ?).
For this part we actually owe everything to Corentin, who got the time to work on this and figured out a way to import the old _WordPress_'s database into the _Bolt_'s new one :bow:
Very soon, some mobile users will have a little surprise, but with the new website published, we still have to work on it :wink:
We are recruiting ! If you are interested, just take a look at [this page](https://geek-mexicain.net/pages/rejoindre-l-equipe) which is in French of course.
### Conclusion
The Geek Mexicain's team really hopes you will enjoy this new website, and mainly, its content.
On our side, we improved our working conditions anyway :stuck_out_tongue: