Inspired by the 100 days of code
I seen by @jobkroongit.
So I though why not start one myself.
I am going to create 100 API endpoints that preform some form of useful logic.
Weapons of choice, Laravel
+ vue3
& Python
. Not sure if I need a DB yet, but if I do it will be PostgreSQL. I will also use tailwind
to speed up the front-end side of things.
I will not set the GIT repo as public, but I will highlight code/technique/architecture/info that I find interesting and possibly valuable to others. I will base a good few of the endpoints on things that I tend to need in my every day development work.
Step 1 -- Setup and Deployment
I will be using VS Code, Postman and Git Desktop as my main dev/deployment tools with GitHub and CI actions, CI actions helps with deployment as it runs tests before push/branch merge. For live I will use Laravel Forge and a Digital Ocean droplet (so that I can install python). This will give a place for myself and others to view and interact with each endpoints I create. Aim to get all this setup in the first half of the 6 hours.
Step 2 -- Create a test endpoint for Boilerplate/Setup
I created a quick little Milliseconds to Minutes
conversion. I find myself seeing Milliseconds form time to time, for example the output of MySQL EXPLAIN ANALYZE
and it can handy to be to quickly convert it.
Most of the stuff done here so far, is boilerplate setup, but I did use of the python package pint UnitRegistry
. I also used the PHP doodle I did as the PHP/Python - link at bottom.
So here it is the live Milliseconds to Minutes Converter
:
https://oneaday.dev/one-hundred-apis
*link changed as of the UI update.
Notes:
I got hold of this oneaday.dev
domain that I thought was fitting.
later I will subdomain so more use, for example:
johns.oneaday.dev
:)
I did not know that .dev
domains have to be SSL or they will not resolve to the A record
=> server IP address
. Was scratching my head on that one for about 15mins.
Nice one John! Happy to follow your project 😁 Now you mentioned it, forgot to update my last few days on here 😅