https://github.com/shikhar97/stocktrade
A simulator for a stock trading platform that allows users to buy and sell stocks. The platform supports two types of users - customers and administrators. Administrators are responsible for creating the stocks and setting their initial prices.
https://github.com/shikhar97/stocktrade
postgresql python3
Last synced: about 2 months ago
JSON representation
A simulator for a stock trading platform that allows users to buy and sell stocks. The platform supports two types of users - customers and administrators. Administrators are responsible for creating the stocks and setting their initial prices.
- Host: GitHub
- URL: https://github.com/shikhar97/stocktrade
- Owner: Shikhar97
- License: apache-2.0
- Created: 2022-10-11T18:40:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-13T22:52:13.000Z (about 3 years ago)
- Last Synced: 2025-08-11T04:55:30.416Z (11 months ago)
- Topics: postgresql, python3
- Language: HTML
- Homepage:
- Size: 3.51 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Stock Trade
## Pre-requisites
This application is supported on all the platforms, provided docker is installed.
Download and Install Docker from https://docs.docker.com/get-docker/
### For macOS and Linux
Execute _./run.sh_
### For Windows
Execute _./run.ps1_ file
Access the application at http://127.0.0.1:5001
#### In case docker is not available,
1. Download and Install PostgreSQL from https://www.postgresql.org/download/
2. Create a DB user "admin" and a database "stock_trade"
3. Run _config/init_db.sql_ file
4. Download and Install Python from https://www.python.org/downloads/
5. Execute _pip3 install --user -r requirements.txt_
6. Run _python3 main.py_
_**If using docker the data is not persistent so if respawned need to register users again**_