tommyxchow / stawks

A web app that renders charts, details, and news for stocks.

Home Page:https://stawks.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screenshot

A web app that renders price history charts, details, and news for stocks. Only supports entering stock tickers due to limitations with the IEX Cloud API.

Background

When I took my first intro to CS course back in 2019, the final project I worked on was a really basic stock web app (here). I've learned a lot since, so I decided to make a remake/remaster of it! I rebuilt the project using the same API but with a more modern stack and overall nicer design.

Stack

Setup

You'll first have to register for an account on IEX Cloud to obtain an API token. Then, set the token as the IEX_TOKEN environment variable.

You can refer to the IEX Cloud API documentation for more details.

Notes

The IEX Cloud API is now pretty limited on the free tier, so the website displays fallback data to maintain interactivity.

STAWKS utilizes incremental static regeneration (ISR) from Next.js to statically generate stock pages while also keeping data up to date, resulting in excellent performance. The homepage is revalidated every 30 minutes while the stock page is revalidated every minute.

License

STAWKS is licensed under MIT.

About

A web app that renders charts, details, and news for stocks.

https://stawks.vercel.app

License:MIT License


Languages

Language:TypeScript 97.7%Language:JavaScript 2.1%Language:CSS 0.2%