An app to bring together a community of investors ready and willing to help each other grow.
npm install
pip install -r requirements.txt
npm install --save react-router-dom
npm install --save react-google-login
npm install --save react-icons
sudo yum install postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs
(enter yes on all prompts)pip install psycopg2-binary
pip install Flask-SQLAlchemy==2.1
sudo pip install pandas
- Run
echo "DANGEROUSLY_DISABLE_HOST_CHECK=true" > .env.development.local
in the project directory
- Run command in terminal (in your project directory):
python app.py
- Run command in another terminal,
cd
into the project directory, and runnpm run start
- Preview web page in browser '/'
- Flask, Requests, Python-dotenv, Random, Time, Datetime, and Pandas
- On the IEX Cloud page make a free account
- Once signed up and logged in, go to your account dashboard and click on API Tokens
- You are given a real api key that counts against your monthly api calls and a sandbox api key that gives you unlimited calls with fake data. To access the real API token, click the 'Sandbox View' switch to off. To access the sandbox token, switch it to off
- On the NYTimes page make a free NYT developer account
- After logging in, go to 'Apps' and click 'New Apps'
- Create the app and enable all APIs and create the API key
- On the Google credentials page create a project
- Then click 'Create credentials' and select 'OAuth Client ID'
- Name the OAuth client
- Get the Client ID
- Provide required Redirect URI's (local routes can be added for development)
- Create a Heroku app:
heroku create --buildpack heroku/python
- Add nodejs buildpack:
heroku buildpacks:add --index 1 heroku/nodejs
- Push to Heroku:
git push heroku {optional_branch_name}:main
- Create remote DB:
heroku addons:create heroku-postgresql:hobby-dev
- Get database URL:
heroku config
- export database URL:
export DATABASE_URL='{insert_database_url_here}
(no curly braces)
- E1101 (import-error) because unites files function correctly, which means that the file successfully imported
- W0603 (global-statement) because we needed the usage of global statements to keep track of last update time
- C0413 (wrong-import-position) because in order for the app.py to work correctly we have to import a table after some sqlalchemy configuration code
- W1508 (invalid-envvar-default)
- C0200 (consider-using-enumerate) because we prefer to use range instead of enumerate
- R0801 (duplicate-code)
- E1101 (no-member)