Giter Site home page Giter Site logo

washbin / trader Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 3.0 67 KB

A stock trading simulation app created using flask framework

License: MIT License

Python 59.64% Shell 0.86% CSS 1.16% HTML 35.56% Dockerfile 1.31% Mako 1.47%
flask python docker jinja2

trader's Introduction

Trader

A stock trading simulation app created using python flask framework

Running Yourself

You could do both development and deployment without docker but this readme doesn't cover that part as of now.

  • Make sure you have docker and docker-compose installed.
  • If you do not have docker, you could follow the instructions at Getting started with docker
  • Create a .env file at the root of project directory with your secrets,
    following the template.env structure and source it.
    • The API_KEY could be obtained from IEX Cloud
    • View info about SECRET_KEY at Flask documentation
    • DATABASE_URL as the name suggests just points to your database
      For development you could use something simple like DATABASE_URL="sqlite:///local.db",
      For production you will likely define it in docker-compose file in compose_production directory

Development

  1. Change directory into the main_app directory
  2. Do a docker-compose up -d
  3. Your site should now be served at port 5000 and reflect any changes you make to the code.

Deployment

You may want to make some changes in nginx configuration and
hide postgres credintials from compose_production/docker-compose.yml file.

  1. Change directory into the compose_prduction directory
  2. Do a docker-compose -f docker-compose.yml up -d
  3. Your site should now be served at port 80 in your ip.

Acknowledgments

This project is basically a clone of CS50's finance project

License

Licensed under the MIT License.

trader's People

Contributors

washbin avatar dependabot[bot] avatar

Watchers

 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.