Find our deployed website at https://gatortrade-xe9z.onrender.com/
Schema Diagram (ERD):
This diagram represents the database structure used by the backend.
It shows how our two tables (stocks and prices) relate to each other in a one-to-many relationship (one stock has many daily price entries).
-
Initialization (
data/database.js)
Creates and configures the SQLite database, defining thestocksandpricestables. -
Seeding (
data/seed.js)
Populates thepricestable by generating 365 simulated daily price entries for each stock. -
Database Methods (
server.js)
Performs queries such as retrieving a stock by symbol and fetching its associated price history, using the schema represented in the diagram above.
