gregdardis / stock-market-search Goto Github PK
View Code? Open in Web Editor NEWSearch a stock symbol to receive a graph and financial metrics
License: MIT License
Search a stock symbol to receive a graph and financial metrics
License: MIT License
see the TODO in src/constants/index.js
edit: I (Greg) removed the TODO, just see this issue.
Not really sure when this happens, just seems to be random
Make the search bar autocomplete based on a database of stock symbols (and possibly company names too)
Once I figure out how to debug with breakpoints instead of using "debugger"
We want them to be nice and easy to read. Currently they look bad
If the user enters a valid symbol, do a progress wheel?
Otherwise tell the user the symbol doesn't exist and to try again or something
Take out the part that says some features are incomplete. It is always being worked on but now the project is more presentable.
Haven't put much thought into whether the grid should be styled differently.
Figure this out, and either apply the needed styling or do nothing, then close this issue.
npm script to generate shareable URL to share changes easily
Tooltip is poorly formatted. Hovering over a data point on the line chart shows a date and then the security price for that date.
This is written as price : securityPrice for some reason, with a space between the word "price" and the ":".
Tried for a little bit to fix this, seems built in and every question I have seen about recharts still has this space in that spot.
Before the user searches a symbol, there is placeholder text below the search bar.
Figure out what to do with this space in the meantime.
Trying to put a function in utils/apiUtils/chartData.js and then import & call it in client code caused many errors in the npm run dev
terminal and prevented the app from running.
Example error:
ERROR in ./node_modules/request/lib/har.js
Module not found: Error: Can't resolve 'fs' in '/Users/Hailey/GitHub/stock-market-info/node_modules/request/lib'
@ ./node_modules/request/lib/har.js 3:9-22
@ ./node_modules/request/request.js
@ ./node_modules/request/index.js
@ ./node_modules/request-promise/lib/rp.js
@ ./src/utils/apiUtils/chartData.js
@ ./src/client/reducers/chartTimePeriodIndex.js
@ ./src/client/reducers/index.js
@ ./src/client/render.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/client/render.js
See title - it looks gross
Consider using this in mapDispatchToProps
Make a maximum number of characters that will go in the search component input. Stock symbols are not that long
Take into consideration that the stock's data might not be up to date anymore...
Currently server just gets a bunch of errors but program continues to work if you search for a symbol that doesn't exist.
Make this work more as expected, handle the errors, show the user some feedback, etc
Make webpack.config.dev.js and webpack.config.prod.js
Could be a problem with the CDN, try loading MathJax in a different way.
Unhandled rejection Error: Callback was already called.
at /Users/Hailey/GitHub/stock-market-info/src/server/node_modules/async/dist/async.js:966:32
at /Users/Hailey/GitHub/stock-market-info/src/server/node_modules/async/dist/async.js:3885:13
at /Users/Hailey/GitHub/stock-market-info/src/utils/apiUtils/chartData.js:304:5
at tryCatcher (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/promise.js:689:18)
at Async._drainQueue (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:651:20)
at tryOnImmediate (timers.js:624:5)
at processImmediate [as _immediateCallback] (timers.js:596:5)
Unhandled rejection Error: Callback was already called.
at /Users/Hailey/GitHub/stock-market-info/src/server/node_modules/async/dist/async.js:966:32
at /Users/Hailey/GitHub/stock-market-info/src/server/node_modules/async/dist/async.js:3885:13
at /Users/Hailey/GitHub/stock-market-info/src/utils/apiUtils/chartData.js:304:5
at tryCatcher (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/promise.js:689:18)
at Async._drainQueue (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/Users/Hailey/GitHub/stock-market-info/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:651:20)
at tryOnImmediate (timers.js:624:5)
at processImmediate [as _immediateCallback] (timers.js:596:5)
eslint-watch has some positives as opposed to eslint-loader which is what we are using.
src/utils/stockDataUtils/createStockDataEntry.js
Get web hosting, put the URL in the README
The line that allows it to work in development is in webpack.config.js and is
devServer: { historyApiFallback: true }
.
I don't think this works in production. See https://stackoverflow.com/questions/27928372/react-router-urls-dont-work-when-refreshing-or-writting-manually
This will get rid of the red border around the search input when the user presses search
https://github.com/john-doherty/selenium-cucumber-js#readme
Features:
Probably related to #51 .
Errors: The above error occurred in the <CartesianGrid> component:
and TypeError: "Invalid date"
Currently, app.get('/api/stocks/:symbol', (req, res)
is a huge mess. Need to factor out some functions of something.
Also, maybe we can rework it so we don't wait on each response before we send the next request.
Consider using chai-enzyme for assertions here: https://github.com/producthunt/chai-enzyme
Also see: https://github.com/airbnb/enzyme/blob/master/docs/guides/mocha.md
This error doesn't crash the app, and the 5 day data is still displayed on the chart properly (I think).
sometimes the numbers printed don't seem right
I don't know what this means, it was on my TODO list because Hailey told me to write it at some point.
Lets do it together so we can learn?
Learn about and implement responsive web design, so the app works well on phones and in smaller browser windows, etc
Currently, you have to re run the server every time you make a change to it, because when we started using babel-node, nodemon stopped working.
Figure this out.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.