This is the server for the StockWatchJa application. It pulls stock trade data from StockWatchJA: JamStockEx API at this URL.
Click here to view the API documentation.
Tool | Version | Source |
---|---|---|
Python | 3.7.4 | Python 3.7.4 Release |
Heroku | - | Getting Started on Heroku with Python |
Windows OS | 10 | - |
Docker | 19.03.4 | Docker Desktop |
Export settings module:
- On Windows:
set DJANGO_SETTINGS_MODULE=development.local_settings
- On Linux:
export DJANGO_SETTINGS_MODULE=development.local_settings
# Create Postgres database Docker container and create schema
> python development/dev_setup.py
# Create admin user
> python manage.py createsuperuser
> python manage.py runserver 5555
Login to admin page with super user credentials to confirm it works. (use "custom_admin_page" if the docker-machine ip is not using the default IP address)
Go to application registration and complete the form. (use "custom application registration" if the docker-machine ip is not using the default IP address)
Name: StockwatchAPI
Client type: Confidential
Authorization grant type: Resource owner password-based