Local Server (Without Docker)
Note that this approach launches a development server (not a production server), but it should suffice for individual use.
Pre-requisites
- Conda
- A TD Ameritrade API key
Installation
Clone this repo to a local directory:
cd <your-directory>
git clone https://github.com/chrischow/agamotto.git
Then, create a .env
file in the agamotto
directory with the following variables:
API_KEY=<TD Ameritrade API key>
EMAIL=<Email cum username to initialise admin account>
PASSWORD=<Password to initialise admin account>
Create a Conda environment and install the required packages:
conda create -n agamotto
conda activate agamotto
cd agamotto
pip install -r requirements.txt
Usage
Run the following commands to launch agamotto in a new terminal:
cd agamotto
flask run
To shut down the app, hit Ctrl + C to stop the server.