/stock_trade

Primary LanguageJavaScript

stock_trade

A sample project.

TO TEST THE APPLICATION

INITIAL URL : http://127.0.0.1:8000/login/

Getting Started

  1. Create virtual environment
#for windows
python -m venv .venv
  1. Activate virtual environment
#for windows
.venv\Scripts\activate
  1. Install all dependencies
#for windows
pip install -r requirements.txt
  1. Run the Migrations Current setup is for MONGO_DB, to use SQLite - uncomment the django.db.backends.sqlite3 Database setting and comment the MONGO_DB settings
#for windows
python manage.py makemigrations
python manage.py migrate
  1. Seed initial data into your database using a custom management command
#for windows
python manage.py load_trader_data.py
python manage.py load_trade_data.py
  1. Run the development server
#for windows
python manage.py runserver

NOTE

Login for users range from user1- user10 and just one admin. You confirm this by viewing the database. e.g username - user1 password - admin12345678 for admin username - admin1 password - admin12345678