Building and Deploying a simple fastapi app

Search for a command to run...

No comments yet. Be the first to comment.
One of the methods of abstraction is to integrate another service. But can you trust someone else's service? Third-party APIs are notorious for failing at the worst possible time. Over time, I ended u

A race condition can hit you anytime, you think it won't because your system isn't that big, or doesn't process a lot of requests, but it will happen, and when it happens, you will feel a bit silly ab

The world is going through a tumultuous phase, but that doesn't stop the progress of humanity. Things go on, people move, prices fluctuate, we eat fruit and live a healthy life. April is hot, so hot,

Well, I celebrated my birthday. :P I worked on a functionality end to end using AI. It was a simple feature and AI wrote everything correctly in a single pass. I used Codex. After that, I had to ask i

Let me think. So I worked on a new functionality and raised a PR in just 2 days for the whole end-to-end correct flow. I did not focus much on performance because I wanted to first get it right and th

Edit: Shifted to Vercel for deployment
Uhh...so I built a small project, so small that I cannot even call it a microservice, it is a nano-service, deployed on render, on a free-tier compute service that automatically goes down after a few hours of inactivity.
Ha ha ha. So much fun.
It is a simple service, with simple code, I'll attach a link here to the github repo, the README is clean and easy to read.
Here is the repo: https://github.com/vivek378521/EpochConverter
The use case is pretty simple, the timestamps in our db are in epochs, and I have to always go to some service to convert it into IST. So I built a service that gives me the IST time and my preferred datetime format. We can also change the time zone but it defaults to Asia/Kolkata.
Building APIs has become second nature to me, and I used it to build this small service.
The deployment process is very easy, just go to render, connect github, enter the run command, and you are done. That's it. (Follow the steps man if you are a software engineer it will be so easy - like sitting in an autonomous vehicle)
A link to swagger docs: https://epoch-converter-vivek378521.vercel.app/docs (might not work in the future)

There is no automated pipeline because of *the free tier* service, but how many times am I gonna deploy it lol.
An automated CI/CD pipeline for side projects sounds tiring and is a luxury.
Anyway, that's it for today. More experiments in the pipeline, maybe. Dunno.