2.2 KiB
2.2 KiB
🚀 Quick Start Guide
Get your Product Tracker up and running in minutes!
Prerequisites
- Python 3.8+ (for backend)
- Node.js 16+ (for frontend)
Option 1: Install Node.js
Choose one of these methods:
Method A: Homebrew (Recommended)
brew install node
Method B: Official Installer
- Visit nodejs.org
- Download LTS version for macOS
- Run the installer
Method C: Node Version Manager
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.zshrc
nvm install --lts
Setup Steps
1. Start the Backend 🐍
cd backend
python3 run_dev.py
This will:
- Create a virtual environment
- Install Python dependencies
- Create SQLite database
- Start FastAPI server at http://localhost:8000
2. Start the Frontend ⚛️
Open a new terminal and run:
cd frontend
./setup.sh # or: bash setup.sh
npm start
This will:
- Install React dependencies
- Start development server at http://localhost:3000
🎉 You're Ready!
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Docs: http://localhost:8000/docs
First Steps
- Add a Shop: Go to "Shops" and add your first store
- Add Products: Go to "Products" and add some items
- Record a Purchase: Use "Add Purchase" to record your shopping
Troubleshooting
Backend Issues
- Dependencies fail: Make sure Python 3.8+ is installed
- Database errors: The app uses SQLite by default (no PostgreSQL needed)
Frontend Issues
- Node not found: Install Node.js using one of the methods above
- npm install fails: Try deleting
node_modulesand runningnpm installagain
Connection Issues
- Make sure both servers are running
- Backend should be on port 8000, frontend on port 3000
- Check firewall settings if needed
What's Included
✅ Complete Backend: FastAPI with SQLAlchemy and SQLite ✅ Modern Frontend: React with TypeScript and Tailwind CSS ✅ Database Models: Products, Shops, Shopping Events ✅ API Documentation: Automatic Swagger docs ✅ Beautiful UI: Responsive design with modern components
Happy product tracking! 🛒