-
Notifications
You must be signed in to change notification settings - Fork 5
Architecture
This will be a traditional webapp, not SPA.
www.stocktracker.com/home - An individual user's home page, shows favorite stocks. (Screens 1 & 2).
www.stocktracker.com/search?q={symbol}&sort={sortby}&filter={filters}&submit=Search - The search page for stocks. This will also include the search results with the arguments: Symbol (symbol), Filters (filters), and a choice of how to sort the results by (sortby). (Screens 3 & 4).
www.stocktracker.com/{symbol} - This page will be the detailed view on a stock with the symbol specified in the URL. (Screen 5).
www.stocktracker.com/login - Login page.
www.stocktracker.com/signup - Sign up form.
www.stocktracker.com/profile - Profile page, includes methods of retrieving forgotten passwords, changing passwords, editing email address, etc.
Login, Sign Up, and Profile pages need to be added to Design.
All of the above mentioned pages will have a header, collapsible navigation menu, and a content block.
Database:
- User:
- This will be handled internally by Django but will include, email address, and password
- StockPrediction:
- symbol (5 character or less string): The Stock's Symbol.
- name (string): The official name of the company (Apple Inc.).
- price (float): A two-decimal place dollar amount signifying the price that the stock currently sells for.
- historical_price (float[]): The 6-month history of the stock price (opening prices).
- price_change(float): The percentage expected change in the current price one week from the current date.
- tracking(User): ManyToManyField with User. Many Users can track Many stock predictions
- date: datefield, date/time the prediction was made
Views:
-
index- Home page, shows login/signup or if authenticated shows list of tracked stocks
-
login- contains login form
-
logout- logs user out
-
search- takes in users input, finds ticker
-
show_stock- shows the stock searched/clicked on, option to track/untrack
-
track- passes stock data to NN and makes a prediction
-
untrack- removes User from tracking field in StockPrediction
..