Skip to content

Web application in Python with Flask that uses IEX API and SQL database to simulate a stock trading website. This is a final project for the web track of Harvard's CS50 Course.

Notifications You must be signed in to change notification settings

Matthewpco/Harvard-CS50x-Web-Final

Repository files navigation

This is CS50 Finance! A Full-Stack Web App made with Python, Javascript, Flask, and SQLite.

Final project from Harvard's Introduction to Computer Science CS50 Web track. The first course of a two part, 24-week program in Professional Web Programming.


🙋‍♂️ Introduction

  • This is a Web application with which you can quote and simulate trading of stocks in real-time. Using the IEX API to query the latest stock data, you are able to manage your own stock portfolio with an embeded SQLite database.

⚡ Technology

  • Front-End
    • HTML
    • CSS
    • Bootstrap
  • Back-End
    • Javascript
    • Python
    • SQLite

📜 Features

  • User management with: Registration, login, logout, and session tracking.
  • Database management with SQLite handling CRUD operations.
  • Security such as password requirements, hashing, and error handling with all forms.
  • Real-Time stock data with IEX API.

💡Lessons Learned

  • Using HTML, CSS, and Bootstrap for visual design and accuity.
  • Working with Python as well as Flask for a web application framework.
  • Utilizing Werkzeug for security and password hashing
  • Parsing data from API's and SQL queries.
  • In-depth learning and use of common database CRUD operations (Create, Read, Update, Delete)

🚀 Getting Started

This project is available online Here, or if you want to run it locally follow the instructions below:

  • You will need Python and Flask installed on your computer to run this application.
  • In your terminal to install dependencies execute:
$ pip3 install -r requirements.txt
  • Define application as Flask if needed:
Unix Bash (Linux, Mac, etc.):

$ export FLASK_APP=application.py

Windows CMD:

$ set FLASK_APP=application.py
  • Finally to start the web server run:
$ flask run 

About

Web application in Python with Flask that uses IEX API and SQL database to simulate a stock trading website. This is a final project for the web track of Harvard's CS50 Course.

Resources

Stars

Watchers

Forks