I’m a bit lost trying to figure the API out this last week, I’m able to figure out how to do a fetch and receive the data back with vanilla JS, but I can’t quite figure out how to have a button a visitor clicks, that will run through the authorization process, and redirect afterwards. For example, using a GET request to print out the bit leaderboard in a simple list.
I’m familiar with express, node, mongo, and templating engines, but I can’t quite piece together something as simple as running a GET request from a button, and returning a new page (via EJS or some other templating engine). I’ve been browsing github for examples, or trying to figure out the node example from the docs, but it’s a struggle!
Below is what I’d like to go for (just to learn), I don’t expect help making the app itself, but does anyone have recommendations for simple repositories I can look through?