Journal

Tag: [mochapi]

Feb 12, 2025 - Using addressable for mochapi

Tags: 

[mochapi]

Today I was looking at my starred repositories, and somehow one of the first ones I ever starred caught my eye. It was a ruby gem called Addressable, that is used to parse URIs and provides functionality to use URI templates.

This is basically what I need for mochapi, instead of my very rudimentary parser I’ve been using. Apart from that it uses RFC specifications, so I don’t have to reinvent the wheel and just use a stardard way of doing URI templates.

It was just testing so, I hope to start the implementation tomorrow.

Feb 05, 2025 - Fixing stuff

Well yesterday was busy, I did work a little bit in my pihole installation. Basically fixing weird errors in Ubuntu.

Today I started fixing the latest mochapi installer, which I messed up. And also started to work on a github action to deploy this site automatically using FTP in my hosting platform.

Jan 19, 2025 - Interesting Rails Routing

This week was kind of busy, not in the work side but just because life. So I haven’t been able to update this journal or work on my projects.

Today I was working on Mochapi, and when trying to change the way the endpoints are managed, found out some peculiarities about the rails routing and url helpers.

Jan 12, 2025 - Upgrading ubuntu

Yesterday I finished the version 0.2.0 of Mochapi, and today I decided to upgrade my desktop OS. I am aiming to upgrade all the way to ubuntu 24, but we will upgrade to ubuntu 22 and see how it goes.

In the end I was able to upgrade to Ubuntu 24.04, the only thing that was not working was mysql. Everything works now.

Jan 11, 2025 - Wrapping up mochapi v0.2.0

Tags: 

[mochapi]

Today I worked in Mochapi after a couple of day with no progress because life. I am not happy with how the code looks, so I will clean it up tomorrow.

Why? because right now the app is really simple, and if with just these couple of features the code is getting out of control it will became a nightmare really fast. It is not early optimization, just a clean up.

Jan 06, 2025 - Mochapi: adding copy curl

Today I added a simple copy to clipboard button for the curl line in the endpoints.

Basically had to recall a bit of Stimulus, importmap, and also how the arrow function works in javascript and why they’re useful. Last one I had completely forgot.

Jan 01, 2025 - Mochapi v0.1.1 Released

I finished the docker installer for this project, fixed the problems with the production build and everything should be working as intended.

The project is far from finished, but that’s the idea. Building features but having a usable software in the meantime.

Here is the [ repo ] with instructions for installation. Documentation will be coming soon, once more features are added.

Jan 01, 2025 - First

Finally finished first working version of Mochapi. A couple of things that I learnt, turbo just added a prefetch feature that basically starts the action in the server when you hover over an element in the page. I found it annoying so I disabled it for now.

Another thing, forgot to disable the force ssl for the app. Without it, the app in prod will fail silently. Well not silently but it will not throw any message.

Anyways, started the year with the project working so I’m happy.