Day 6-7 - Data Science App in 45 days - API First Shot

Day 6-7 - Data Science App in 45 days - API First Shot

Tags
Engineering
Product
Published
Published July 24, 2022
Author
Today was a lovely sunday, at least it is a day I can spend 9hrs+ sleeping and still have time to code and enjoy life.
We spend these two days (and the following days) for deep coding session so maybe you will not hear from the team for a while.. So just to wrap up a bit on the progress.

API Implementation

As mentioned from the last “episode”, we have finished the implementation for 3 different types of resource:
  • Workflows
  • Datasets
  • Datapoints
notion image
These apis are made available using FastAPI, a framework that is heavily influenced by Flask. It was enjoyable and utterly easy to work with.
After being written using FastAPI, a doc page that’s tethered to code in Python will automatically be generated.
notion image
Because the implementation was aggressively typed using Pydantic, you can possibly guarantee the correctness of the api’s response.
As the functionality “grows fonder”, we should have a lot of these APIs. These are just simple resource access and edit without any computation of ML models whatsover. But yeah, it’s a beautiful start.

One-click deploy

I went around some github repo and found that there’s a lot of apps that can be deployed on heroku with single Deploy button. How cool it is..
notion image
After creating so many products that’s too hard to use, I have to make sure this one is simple. That being said, Heroku One-Click deploy is totally handy, at least at installation time.. I’m thinking of setting up this one-click feature for the app backend.

Noting, noting, noting

I feel like noting down can help me clear out my thoughts and think better. Sometimes I just use social network a lot that it kinda defeats my ability to focus.
Noting is such a mediating way to gather your thoughts. It’s calm and safe.