pspa.mp4
This project is a single-page application that allows users to input a stock ticker symbol and displays the average stock price, maximum/minimum volume, and maximum/minimum stock price for a given date range.
- Input field for stock ticker symbol.
- Display average stock price, maximum/minimum volume, and maximum/minimum stock price.
- Responsive design for various screen sizes.
- Frontend: React.js with Hooks
- State Management: Redux
- Backend: Ruby on Rails API
- External API: Polygon.io
To get a local copy up and running follow these simple steps.
- Node.js
- npm or yarn
- Ruby on Rails
- PostgreSQL (or change the database configuration as needed)
- Overmind (optional) for running multiple processes
- Install Overmind:
brew install overmind
- Install Overmind:
-
Clone the repository:
git clone git@github.com:btagliani/portrait_spa.git
-
Install Ruby dependencies:
bundle install
-
Install Node.js dependencies:
npm install
-
Create the database:
rails db:create rails db:migrate
-
Start the servers:
overmind s
-
Open your browser and navigate to
http://localhost:5173/
.
Enter a valid stock ticker symbol in the input field and click the 'Submit' button to view the stock data.
To run tests, run the following command:
rspec