Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
*.pyc
old/
env/

# Generated by poetry
requirements.txt
# For Pycharm
.idea
.envrc
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ If you want to run bulk queries for stock analysis, check out the [Rule 1 Stock

This repository contains a script to iteratively issue a bulk fetch and populate a MySQL database with the results. It also includes some predefined SQL queries for convenience.

## Install dependencies

### Poetry

On windows:

1. Install `pipx` with `py -m pip install --user pipx`.
2. Go to the path in "WARNING: The script pipx.exe is installed in `<USER folder>\AppData\Roaming\Python\Python3x\Scripts` which is not on "PATH". Once in this path execute: `.\pipx.exe ensurepath`
3. Install poetry with: `pipx install poetry`
4. In the repo path for IsThisStockGood, run `poetry install`
5. Install the `export` command addon: `poetry self add poetry-plugin-export`

## Running the site locally.

1. Clone the repo.
Expand Down
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash

poetry export --without-hashes -f requirements.txt -o requirements.txt
gcloud app deploy app.yaml
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from isthisstockgood.DataFetcher import fetchDataForTickerSymbol
from isthisstockgood.server import create_app

# Expose `app` object at the module level, as expected by App Engine
app = create_app(fetchDataForTickerSymbol)

if __name__ == '__main__':
app = create_app(fetchDataForTickerSymbol)
app.run(host='127.0.0.1', port=8080, debug=True)
Loading