This page is the offical documentation for downloading and running the code in this code base.
This project is no longer in develoment. Attempting to build this project will fail because the required API keys are not present in this repo and the MongoDB servers are no longer active. See No_Server_Stockify to run the app. This project has been made public so others may learn from it's existence.
- All code must use tabs over spaces
- One tab is equal to four spaces
- All lines of code must be 80 chars or else. The only exception to this rule is for layout array that are fed to the Window constructor
- Use camal case
It is very important that you read all README.md files before attempting a system test, or a unit test of certain systems here is a list of all README files:
- /main/README.md (the one your reading)
- /main/Helper/helper.py/README.md (used for fixing bugs in imported package)
- /main/UnitTest/Login/README.md (used for unit testing)
- /main/UnitTest/Helper/README.md (used for unit testing)
- /main/Robinhoon_API/README.md (used for find robin_stocks docs)
- /main/UnitTest/Database/README.md (used for fixing SSL cert error and set
connectionString
)
- Create an Authrize.Net accout at: developer.authorize.net
- Save the API key and the transaction key
- Login to your account
- Go to account settings
- Under Security Settings > General Security Settings > click Test Mode
- Set account to Test
- Download Python v3.11.1
- Run
git clone https://github.com/key6oardWarrior/StockTracker
cd [dir that cloned StockTrader]
python setup.py
This will install all the need python dependencies. If you have any more issue read the other README.md files
***NOTE***: MongoDB MUST be installed to do System test and any test that will use server side code
- Download here
- Run
sudo dpkg -i mongodb-org-server_6.0.4_amd64.deb
- Download link. Ensure that you are downloading Mongo DB Compas
- Determin if your macOS is running on either ARM or Intel processor
- Click on the downloaded .tgz file, that is for your processor, in the StockTrader folder and follow the install instructions
***NOTE***: MongoDB MUST be run to do System test and any test that will use server side code
- Click on the MongoDBCompass app
- Click the big green "Connect" button. The server should start running
- Run
sudo systemctl start mongod.service
This will start running Mongo DB - To ensure that the service is running run:
sudo systemctl status mongod.service
- Click on the MongoDBCompass app
- Click the big green "Connect" button. The server should start running
Run: py compile.py
When preforming any kind of test be sure to test both the .py and .pyc files. They both must pass before you can submit a PR. Please note that while running compile.py you may encounter an error that states, "Can't list [directory]." Please ignore this error message.
After completing all the steps in this README and the other READMEs you can run this code. Go into the app directory and in the subdirectory UI click on Stockify.pyw. This will run the entire application for the user's perspective.