Get your own AlphaAdvantage api key at Alpha Advantage
mongoimport --db CDFinance --collection stocks --type csv --headerline api/data/nyse.csv mongoimport --db CDFinance --collection stocks --type csv --headerline api/data/nasdaq.csv mongoimport --db CDFinance --collection stocks --type csv --headerline api/data/amex.csv
Notes:
To get the app to run I had to do the following steps on cloud 9
-
npm install
-
install mongodb from https://community.c9.io/t/setting-up-mongodb/1717
sudo apt-get install -y mongodb-org
-
chmod a+x mongod // to make it executable
-
run ./mongod in one terminal tab
-
in another terminal tab run node app.js // CDFinance is running on port 8080
-
open browser to https://meanfinance-YOUR_USER_NAME.c9users.io
-
installed nodemon(npm install nodemon) - will restart server after making changes
-
going forward, we do NOT have to do all these steps, just
- run ./mongod in one terminal
- run nodemon in another terminal
- point your browser to https://meanfinance-code42.c9users.io
A few things I noticed:
- README.md is misspelled REACME.md so I changed it
- README.md needs md formatting, not <html>
- missing file css/custom.css // needed to move logo down
- CDFinance database has 6756 stocks in it already, no need to import from .csv
- Deposit Funds page says Find Stocks - easily changed
- Find a way to remove "stock-message" from find-controller.html, until successful response
- ToUpperCase() for stock symbol, find-controller
- Change the layout of "Stock input box"
- Change logo font
Change Log
- make new dev branch to work in
- add custom.css file in /public/css folder
- move main page logo down 5% in custom.css
- changes initial error message to "Stock not found", fo
- added vm.error = ''; clears error from page, find-controller.js:13
- capitalized "amount" on Deposit Funds page for consistency with other pages -dd
- replaced logo img with google font text -dd
- created body-toggle class to use as selector for the night mode. please add this class to any text element you want white on toggle -dd