Auto Invest AI is a full-stack stock portfolio analytics platform with:
- user portfolios and default sector portfolios
- a 400-stock
StockMastercatalogue - Bronze/Silver/Gold data pipeline
- precomputed linear-regression forecasts
- fundamentals/news enrichment for table views
| Layer | Technology |
|---|---|
| Backend | Django, Django REST Framework |
| Frontend | React (Vite), Tailwind CSS, Recharts |
| Database | PostgreSQL-ready (configured via Django settings) |
| Data Sources | yfinance, Economic Times RSS |
| ML | pandas, scikit-learn (Linear Regression) |
Project-10/
+-- backend/
¦ +-- api/
¦ +-- analytics/
¦ +-- pipeline/
¦ +-- portfolio/
¦ +-- manage.py
+-- frontend/
¦ +-- src/
¦ +-- package.json
+-- docs/
cd backend
conda run -n autosignal pip install -r requirements.txt
conda run -n autosignal python manage.py migrate
conda run -n autosignal python manage.py runservercd frontend
npm install
npm run devcd backend
conda run -n autosignal python manage.py run_pipeline --mode=allWithout this step, portfolio stocks may show Low Data because Gold forecasts and other pipeline outputs are not populated yet.
StockMasteris the master stock catalogue.PortfolioStockis the through/link table used by portfolio tables.- Removing a stock from a portfolio removes only the link row from
PortfolioStock. StockMasteris not deleted when a user removes from portfolio.
POST /api/register/POST /api/login/
GET /api/portfolio/POST /api/portfolio/POST /api/portfolio/{id}/add-stock/DELETE /api/portfolio/{id}/remove-stock/?symbol=TICKER
GET /api/portfolio-stocks/?portfolio={id}GET /api/stocks/{id}/
After cloning or pulling from GitHub:
- Install backend dependencies.
- Run migrations.
- Run the pipeline once (
--mode=all). - Start backend + frontend.
If pipeline is not run, DB-backed analytics/predictions will appear empty.