A modern, responsive stock portfolio tracker built with React and Node.js
- 📊 Portfolio Management - Track your stocks with real-time updates
- 👀 Watchlist - Monitor potential investments
- 🌓 Dark/Light Mode - Easy on the eyes, day and night
- 📱 Fully Responsive - Perfect on desktop and mobile
- 🔄 Live Updates - Stock prices update automatically
- 📈 Price History - Visualize stock performance
- Node.js 14+
- npm or yarn
- MySQL
- Clone and install:
git clone https://github.com/HackStyx/portfolio-tracker.git
cd portfolio-tracker
npm install
- Create
.env
:
VITE_API_BASE_URL=http://localhost:5000/api
- Start development server:
npm run dev
- Setup backend:
cd backend
npm install
- Configure
.env
:
DATABASE_URL=mysql://user:password@localhost:3306/portfolio_tracker
PORT=5000
NODE_ENV=development
- Run migrations and start:
npm run migrate
npm start
GET /api/stocks # Get portfolio stocks
POST /api/stocks # Add stock
PUT /api/stocks/:id # Update stock
DELETE /api/stocks/:id # Remove stock
GET /api/watchlist # Get watchlist
POST /api/watchlist # Add to watchlist
PUT /api/watchlist/:id # Update watchlist item
DELETE /api/watchlist/:id # Remove from watchlist
- React + Vite
- TailwindCSS
- Framer Motion
- Tremor Charts
- Axios
- Node.js
- Express
- MySQL
- Knex.js
- Uses simulated stock data
- Single-user environment
- Price updates every minute
- Best viewed in modern browsers
MIT © HackStyx