Code Monkey home page Code Monkey logo

pystockanalyze-2019's Introduction

PyStockAnalyze

Django web application that takes stock data, analyzes it and presents a graphical user interface.

Note: If you're using a Linux/Mac OS, skip to step 5 and assume that all steps applying to Git Bash apply to the native Terminal

Environment Setup

  1. Install Python 3.7.2 (Check off "Add Python 3.7 to PATH")

    https://www.python.org/downloads/release/python-372/

  2. Install a code editor

    1. Option 1: PyCharm (https://www.jetbrains.com/pycharm/download/#section=windows)
    2. Option 2: Sublime (https://www.sublimetext.com/3)

    Note: Make sure your editor is on your windows path or save the path in notepad (to be used in a later step)

  3. Install Git Bash:

    https://git-scm.com/downloads

  4. While inside of the git bash commandline, modify proxy to support github access by executing

    git config --global http.proxy http://<proxy_server>:<port>

    Note: Git bash will be used to make updates to the repository and submit them to the remote repository

  5. Open Git Bash and navigate to home directory to create .bashrc file

    Navigate to home directory by entering cd ~

    touch ~/.bashrc

    To check that this file exists, run ls ~/.bashrc

    Add the following code to the bashrc file

    # Enable calling python executable
    alias python='winpty python.exe'
    
    # Add support to open editors from git bash commandline with ```$ <editor_name> <file>```
    alias pycharm='winpty pycharm.exe'
    alias sublime='winpty C:/Program\ Files/Sublime\ Text\ 3/sublime_text.exe'
    alias atom='winpty C:/Users/<user_name>/AppData/Local/atom/atom.exe'
    
    # Setup proxy
    PROXY_OPT=--proxy=http://<proxy_server>:<port>
    # Enable building environment through command
    alias buildenv='source $(git rev-parse --show-toplevel)/tools/build_env.sh'
    alias cleanenv='$(git rev-parse --show-toplevel)/tools/clean_env.sh'
    alias setproxy='PROXY_OPT=--proxy=http://<proxy_sever>:<port>'
    alias clrproxy='PROXY_OPT='

    Copy the proxy info into your bash RC file on the lines containing

    Make sure to update the PROXY in the bashrc with the correct proxy information behind the firewall

    Note if you're adding the alias links for pycharm/sublime/atom/notepad++ to make sure to specify in Linux style (directories separated by /, and not , the latter being Windows style)

  6. Clone repository:

    Inside of your terminal/git bash, navigate to the folder in which you want to download your repository

    Execute git clone https://github.com/NIAGroup/PyStockAnalyze.git

  7. Exit Git Bash and re-open it or run "source ~/.bashrc" to make the new commands available for execution while in git bash. The commands are to be used as follows:

    buildenv - Used to create the python virtual environment and install all dependencies (Make sure to cd into the cloned repository before running this command)

    cleanenv - Used to remove virtual environment build folder and exit environment if it's active (Make sure to cd into the cloned repository before running this command)

  8. To activate the virtual environment type in the following command:

    activate
    
  9. Add the line below to the following file : localuser.py above the Database passwords declarations

    django_production_key='123'
    

    NOTE: The file can be found in the following directory:

    PyStockAnalyze/src/pysdjango/pysdjango/localenv/localuser.py
    
  10. Enable git flow:

    cd <repo_path>
    git flow init
  11. Test that the build flow worked by running django webserver:

manage runserver

Open web browser to the following URL: http://127.0.0.1:8000/

pystockanalyze-2019's People

Contributors

skasero avatar nerdboyq avatar nickschar avatar abnezert avatar

Stargazers

 avatar Bola avatar  avatar

Watchers

James Cloos avatar  avatar Lenny avatar  avatar

pystockanalyze-2019's Issues

Create tutorials base page

Requires the creation of the new application and addition to the settings file, construction of the view, update to the urls.py, and template creation, etc.

Create developers page

Create a basic profile page containing a profile picture, a URL to your LinkedIn profile and a short description about yourself.

Construct website structure diagram

We need an image that depicts the structure and hierarchy of the end product. This would be used to define things such as pages, navigation etc.

Create user login panel

Make this panel show up on all pages in the website unless the user is already logged in.
Support login capabilities and connect this panel to the login database.
Login feature needs to be secure.

Unit testing

Complete unit testing overview and write test suite.

Create stock analysis application/page

Requires all the necessary input methods and frames/shells to create the required interface to be used later.
Must also display a sample image in the interface as a place holder for the plot image.

ORM | Modify user bios to use database

  • Update the user bio pages to source the content for the pages from an ORM model in a developer table and also store the data from the date that the data was last updated (display that on the page).
  • Update the primary bio landing page to list all developer photos in a list
  • Make the images be the link to the detailed bio pages

DJango admin page broken

The page is failing after attempting to login, because everyone needs to apply the migrations locally.

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.