Screen.Recording.2022-12-19.at.09.29.33.mov
A demonstration of my React + Typescript skills, fetching data from an Airtable base on the server-side and displaying an analytics dashboard based on it.
- Total Orders Sold
- Orders in Current Month - Gives analyst context for orders in current month. For now, it's all orders in current month regardless of year because the orders are only till 2021.
- Orders in Progress
- Total Revenue generated till date
- Top 3 products sold to date - Gives analyst context on the best-selling products so they can double-down on it.
- Products Least Sold - Gives analyst context on the worst-selling products so they can either try to improve sales, or stop selling the product completely.
- Sales Trend - Month-over-month sales trend to provide the analyst context over current sales trends.
- Revenue Trend - Same reasoning as above.
- A view of recent orders as Table or Airtable, according to the analyst's preference.
- Improve types used within the app (simplify and combine types).
- Use
getStaticProps
instead to avoid repeat calls (prevent running out of API requests).
- Mantine - A fully featured React components library.
- React ChartsJS - A charting library for React.
- Add your Airtable API key to the environment variable -
AIRTABLE_apiKey
.
- Install Docker on your machine.
- Build your container:
docker build -t airtable-react .
. - Run your container:
docker run -p 3000:3000 airtable-react
.
You can view your images created with docker images
.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.