Skip to content

Danny-Nunez/stock-pulse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TSLA Pulse Visualizer

A real-time stock market visualization and portfolio management application.

Features

  • Real-time stock price visualization
  • Portfolio tracking with live price updates (via PartyKit)
  • Technical analysis and signals
  • AI-powered insights
  • Watchlist management

Setup

  1. Install dependencies:
npm install
  1. Create a .env.local file with your API keys:
POLIGON_API_KEY=your_polygon_api_key
GEMINI_API_KEY=your_gemini_api_key
VITE_PARTYKIT_HOST=localhost:1999  # For local development
  1. Initialize the database:
npm run init:db
  1. Start the development server:
npm run dev
  1. In a separate terminal, start the PartyKit server (for real-time portfolio updates):
npm run partykit:dev

PartyKit Setup for Real-Time Portfolio Updates

The app uses PartyKit for real-time portfolio price updates.

Local Development

  1. Install PartyKit CLI (if not already installed):
npm install -g partykit
  1. Set your Polygon API key in PartyKit:
partykit secret put POLYGON_API_KEY
  1. Start PartyKit server:
npm run partykit:dev

The PartyKit server will run on localhost:1999 by default.

Production Deployment

  1. Deploy PartyKit server:
npm run partykit:deploy
  1. Set environment variable in your Vite app:
VITE_PARTYKIT_HOST=your-partykit-url.partykit.dev
  1. Configure PartyKit secrets:
partykit secret put POLYGON_API_KEY

Available Scripts

  • npm run dev - Start Vite development server
  • npm run build - Build for production
  • npm run preview - Preview production build
  • npm run partykit:dev - Start PartyKit development server
  • npm run partykit:deploy - Deploy PartyKit server to production
  • npm run init:db - Initialize database
  • npm run clear:cache - Clear API cache

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors