How sarang19114/pred works
Stocket combines a React stock-analysis experience, Flask API, Mongo-backed account features, and separate statistical/ML and deep-learning prediction services. The user-facing workflow spans account access, stock lookup and dashboard analysis, watchlist tracking, and next-day forecasts; learning, chatbot, support, feedback, and profile capabilities are also represented. Source excerpts establish server routing and prediction dispatch, but do not show how client pages call the APIs, so those links are left unasserted.
Main entry points: routes.py API routes · App.tsx Route shell · models.py Mongo data models · profile.py Profile management
Components 32
Web client
- Route shell
client/src/App.tsx - Sign-in and signup
client/src/pages/Signin.tsx - Stock dashboard
client/src/components/Dashboard/Dashboard.tsx - Watchlist page
client/src/pages/Watchlist.tsx - Forecast pages
client/src/components/Prediction/PredictionTechniques.tsx - Learning section
client/src/components/Learning/LearningComponent.tsx - Market chatbot
client/src/components/Chatbot/Chatbot.tsx - Profile page
client/src/components/Profile/ProfileComponent.tsx - Support page
client/src/pages/support.tsx - Contact form
client/src/components/Contact/Contact.tsx - Feedback form
client/src/components/Feedback/FeedbackForm.tsx - Account settings
client/src/components/Settings/AccountSettings.tsx
Core API
- Flask API
server/app.py - API routes
server/routes.py
Accounts and engagement
- Authentication
server/utils/Auth/auth.py - Profile management
server/utils/User/profile.py - Watchlist management
server/utils/Watchlist/watchlist.py - Contact storage
server/utils/Contact/contact.py - Feedback storage
server/utils/Feedback/feedback.py - Chat service
server/utils/Chat/chat.py - Mongo data models
server/models.py
Market data
- Stock lookup
server/utils/Stock/stock.py
Forecast services
- ML API
prediction/MLModels/app.py - Deep-learning API
prediction/DLModels/app.py - ARIMA forecast
prediction/MLModels/utils/ARIMA_prediction.py - Random Forest forecast
prediction/MLModels/utils/RANDOMFOREST_prediction.py - LSTM forecast
prediction/DLModels/utils/LSTM_prediction.py - GRU forecast
prediction/DLModels/utils/GRU_prediction.py
Other components
- Investor
- Yahoo Finance
- Gemini API
- Cloudinary
Connections 30
- Investor → Route shell: uses
- Route shell → Sign-in and signup: routes to
client/src/App.tsx - Route shell → Watchlist page: routes to
client/src/App.tsx - Route shell → Profile page: routes to
client/src/App.tsx - Route shell → Support page: routes to
client/src/App.tsx - Flask API → API routes: registers
server/app.py - API routes → Authentication: dispatches
server/routes.py - API routes → Stock lookup: dispatches
server/routes.py - API routes → Profile management: dispatches
server/routes.py - API routes → Watchlist management: dispatches
server/routes.py - API routes → Contact storage: dispatches
server/routes.py - API routes → Feedback storage: dispatches
server/routes.py - API routes → Chat service: dispatches
server/routes.py - Authentication → Mongo data models: reads and writes
server/utils/Auth/auth.py - Profile management → Mongo data models: reads and writes
server/utils/User/profile.py - Profile management → Cloudinary: uploads images
server/utils/User/profile.py - Watchlist management → Mongo data models: updates
server/models.py - Contact storage → Mongo data models: saves messages
server/utils/Contact/contact.py - Feedback storage → Mongo data models: saves feedback
server/utils/Feedback/feedback.py - Stock lookup → Yahoo Finance: fetches quotes
server/utils/Stock/stock.py - ML API → ARIMA forecast: dispatches
prediction/MLModels/app.py - ML API → Random Forest forecast: dispatches
prediction/MLModels/app.py - Deep-learning API → LSTM forecast: dispatches
prediction/DLModels/app.py - Deep-learning API → GRU forecast: dispatches
prediction/DLModels/app.py - LSTM forecast → Yahoo Finance: fetches history
prediction/DLModels/utils/LSTM_prediction.py - Random Forest forecast → Yahoo Finance: fetches prices
prediction/MLModels/utils/RANDOMFOREST_prediction.py - Chat service → Gemini API: market insights
README.md - Stock dashboard → Flask API: loads stock data
- Forecast pages → ML API: requests forecasts
- Forecast pages → Deep-learning API: requests forecasts