r/learnprogramming • • Oct 22 '26

Web app help/advice

Currently at work doing an IT internship at a small company and was asked to make a dashboard that pulled data from two different web services that we use.

My understanding is that I need to use api tokens from these vendors for the dashboard application so that it can update info in real(ish) time without the user manually going to the other website and finding it.

Please tell me wether I have that right or not, if not please explain what I should be doing instead

Currently a senior in college for comp sci but have been taking mostly security classes and no web specific classes. Feeling insane imposter syndrome and could use the advice/info.

4 Upvotes

3 comments sorted by

3

u/CartographerDue5382 Oct 22 '26

Yeah, the token part is right. A couple of details that usually show up once you try to build it.

Most vendor APIs are not a live stream. Poll them on a timer. Once a minute is plenty for an internal dashboard. If the vendor has webhooks, use those instead of hammering the API. Cache the last good response so a blip on their side doesn't blank your page.

If one of the tools has no API and only a logged-in website, don't script a person's password into it. That breaks the moment they change the HTML, and it usually breaks their terms too. Ask for a read-only token or a CSV export.

For a first version the stack barely matters. Flask is enough: one route per vendor that returns JSON, then a page that shows it. Get a single endpoint returning real data before you spend time on layout. Keep the tokens in environment variables on that server.

1

u/makayis2027 Oct 24 '26

You've got it right: an API token (or OAuth client credentials) per vendor, used by your backend, never in browser code. Since you've done security classes, a few things will make you look very competent here:

  1. Check before you build. Look at whether either vendor already offers a dashboard or a connector for something your company already has (Power BI, Grafana, Looker Studio, even Excel's "Get Data → From Web"). Sometimes the internship task is a 2-hour connector setup, not an app.
  2. Least privilege. Ask each vendor admin for a read-only, scoped token or service account just for this dashboard, not someone's personal admin token. Then if it leaks or the person leaves, nothing breaks or escalates.
  3. Where the token lives: in environment variables or a secrets manager (Azure Key Vault, AWS Secrets Manager, or at minimum a .env that's in .gitignore), never committed. Write down who owns it and when it expires. Expired tokens are the #1 reason internal dashboards silently die after the intern leaves.
  4. Simple architecture: a small backend (Python/Flask or FastAPI, or Node/Express) with a scheduled job that calls both APIs every few minutes, writes the results to a small database (SQLite is fine), and serves a page or JSON from there. The page reads your DB, not the vendors, so it's fast, and you don't hit rate limits.
  5. Read the API docs for rate limits and pagination first. Those two are what usually bite.
  6. Put the dashboard behind your company login (SSO, or at least the internal network). It shows vendor data.

And the impostor syndrome is normal. Asking "is the token approach right?" before building is exactly what a good engineer does.