An open API service indexing awesome lists of open source software.

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.

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**_