Code Monkey home page Code Monkey logo

stock-trading-app's Introduction

Stock Trading Web App

A stock trading web app built on Flask with an aim to learn about backends.

  • Buy, sell, check price of stocks in realtime
  • View portfolio of your stocks
  • View history of purchase and sale of stocks

My Learning Objectives:

I'll be following Miguel Grinberg's Mega-Tutorial practices for structuring my app with my taste sprinkled in some places.

Topics I plan to master by the end of this project as I wander my dev journey:

  • web caching in detail
  • databases, ORMs
  • deployment to cloud
  • cookies, session management
  • authentication, authorization
  • WSGI servers and werkzeug (flask is based on werkzeug)
  • web security - eliminate OWASP top ten security risks from the app
  • REST APIs in detail - Read Roy Fielding's paper
  • client side validation via JavaScript, AJAX
  • scalability, testing, CI & CD
  • QA

Routes / controllers I need to implement:

  • /register to register users
  • /login to provide login mechanism
  • /logout logs out user
  • /quote to get a stock's latest price
  • /buy to buy stocks
  • /index shows the portfolio of stocks
  • /sell to sell stocks
  • /history to see the history of transactions
  • /api/check/<username> to allow username validation client side via AJAX

Quick Development Setup

Fork. Clone. Make sure you cd to stock-trading-app directory. Set upstream and origin.

Install or update to the latest version of Python if you haven't already.

Time to get started. Feel free to create an issue if you get stuck or if you need help :)

# Note: execute the below commands in `Bash` with administrative privileges

# Installs pipenv globally
pip install pipenv

# The below command installs dependencies in the pipenv's virtualenv
pipenv install --dev

# Activates virtualenv subshell
pipenv shell

# Copies `sample.env` to `.env`
# You can paste your API credentials in `.env`
cp sample.env .env

# Runs the app, served at http://127.0.0.1:5000 by default
flask run

stock-trading-app's People

Contributors

vkweb avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.