- Install Python 3.6
- Create a virtual environment named env using venv
- Activate the virtual environment
- Install all dependencies (
pip install -r requirements.txt
) - Start the server (
flask run
)
- Prepare a train models data JSON based on train_models_sample.json.
python train_models.py <train_models_data_path>
python save_predictions.py local <stock_code>
- Download Firebase service account key from Firebase Console and save it as firebase-adminsdk.json in credentials.
python save_predictions.py cloud <stock_code>