Stardance API
- 10 Devlogs
- 16 Total hours
I aint waiting any longer for a stardance API so I am making my own which everything the flavortown one did pretty much
I aint waiting any longer for a stardance API so I am making my own which everything the flavortown one did pretty much
lowk I stopped devlogging idk why but probs since im submitting ts to
macondo. If yall want more devlogs just lemme know and I will 
So whats changed? 
So umm added flavortown V1 endpoint design so it perfectly integrates
into old apps that use the flavortown endpoint, returns the same
information and data.
Added a V2 endpoint which is V1 + more. So like umm, the score for
example. I made my own custom rating algorithm for rating, devlogs and
projects for a leaderboard function later on. I MIGHT make stardance
project database.
Added an AMAZING new interface, the lander allows you to signin and
“endorse” this project, which you totally should
I used my own custom OAuth library for this.
As a prize for your great work, look out for a bonus prize in the mail :)
Added comprehensive testing and fixed endpoints failing some tests. Tests are ran via mix test
Fixed “/projects/:id/devlogs/:id” returning 404 if the project is not scraped. It now starts the project scraping workflow. Also added docs being on “/” and not the default phoenix lander
If a record has not been updated within the past 12h it rescrapes it to keep data updated every 12h, this can be increased or decreased easily. Also added an entrypoint.sh script so ecto migrations are applied automatically when started.
Added a “/projects/:id/devlogs/:id” endpoint like what flavortown had for backwards compatibility.
After like an hour of trying to fix deployment its finally deployed. V0.000000000000000001 done
It took me ages cause the DB was bugging so I had to change owner to postgres and stuff and finally got it working
Finally got the project API working from the DB. I forgot to include the user ID so it would not save, then I had issues where it could not find @jam06452 for example in the db so it tried to write jam06452 without the @ leading to it always breaking. I fixed all of this. I am free
Added writing to database to store requests so I do not need to scrape SD every time a user makes a request.
Added return json from an API endpoint following the flavortown spec. 
Added core tables for ecto in postgres so data can be stored so I won’t fetch the stardance pages evertime otherwise they may not be happy 
Added a way of fetching and parsing projects and users and returns them as a map. I will return them as json from a url soon, just getting the core internal services setup. Me rn