Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aryanvichare/stocks

📈 Stock Picker using Next.js, React Server Components, Tailwind CSS, and shadcn/ui components and charts
https://github.com/aryanvichare/stocks

Last synced: 23 days ago
JSON representation

📈 Stock Picker using Next.js, React Server Components, Tailwind CSS, and shadcn/ui components and charts

Awesome Lists containing this project

README

        

# Stock Picker

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Faryanvichare%2Fstocks)

Demo web app using Next.js, React Server Components, and Streaming "server-rendered" stock price data from Polygon.io API. Original inspiration from @rauchg's tweet - https://x.com/rauchg/status/1809389050568298625

This project uses the brand new shadcn/ui charts library - https://ui.shadcn.com/charts.

Screenshot 2024-07-06 at 3 23 43 AM

Screenshot 2024-07-06 at 3 24 26 AM

# Features

- Built with Next.js App Router, Typescript, TailwindCSS, and Shadcn/UI (and latest charting components)
- Uses React Server Components and Streaming "server-rendered" stock price data from Polygon.io API

# Getting Started

1. Clone this repository to your local machine:

```bash
git clone https://github.com/aryanvichare/stocks.git
```

2. Move to the cloned directory

```bash
cd stocks
```

3. Install dependencies:

```bash
npm install
```

4. Copy the .env.example to your .env.local

```bash
cp .env.example .env.local
```

5. Get your API Key from [Polygon.io](https://polygon.io/) and paste it into your .env.local

6. Run the development server:

```bash
npm run dev
```