You are browsing as a guest. Sign up (or log in) to start making projects!

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

Open comments for this post

10h 22m 3s logged

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 :grin-wx:

So whats changed? :hmmmm:

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 :pleading: I used my own custom OAuth library for this.

1
0
110
Super Star

As a prize for your great work, look out for a bonus prize in the mail :)

Ship #1 Changes requested

I lowk got tired of waiting for basic stardance APIs so I made my own APIs. This works when a project, user or devlog is requested it checks the DB, if it has been more than 12h or if it is missing from the DB it webscrapes the stardance site and extracts the data and saves it in the DB so the next user who requests does not need to scrape the site. This was built in elixir so its very fast and can handle concurrent users. This took ages to develop since I had to plan all of this out in detail before I could build so it is fast and efficient and easily expandable. The amount of SQL, ecto, query design was insane, I have done so much to optimise this and ensure it is scalable. These images perfectly sum up this project. :)

  • 9 devlogs
  • 5h
Try project → See source code →
Open comments for this post

36m 49s logged

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

2
0
105
Open comments for this post

20m 36s logged

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.

2
0
59
Open comments for this post

44m 41s logged

After like an hour of trying to fix deployment its finally deployed. V0.000000000000000001 done :yayayayayay: It took me ages cause the DB was bugging so I had to change owner to postgres and stuff and finally got it working

1
0
49
Open comments for this post

1h 13m 41s logged

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

1
0
83
Open comments for this post

42m 57s logged

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 :joe_sad:

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

2
0
87

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…