Skip to content

Server to handle VEEP website and to possibly offer other services to external clients (dashboarding, excel exports).

Notifications You must be signed in to change notification settings

Manraj15/veep-web-server

 
 

Repository files navigation

This is a python server for VEEP.

Table of Contents (to be updated)

Starting a Development Server

You will need to install the following:

Pipenv is a dependency manager, similar to NPM, and writes to a file called a Pipfile. The Pipfile tracks any external packages you may have added to your project when you use its equivalent command to pip install, pipenv install. Pipenv will also only write to your current virtual environment, meaning that if one dependency breaks another, you can easily delete that virtual environment and start over (as opposed to manually going through your hard drive/SSD and deleting python modules).

Virtualenvwrapper is a set of extensions that help you create, update, delete virtualenv's. It's not essential, but I don't know how to do it conventionally with just virtualenv. It looks like you can actually create a virutalenv with pipenv as well, though the tutorial I went through just used virtualenvwrapper.

To start a development server:

  • make a new virtualenv
  • run pipenv run python setup.py
  • go to localhost:5000

Heroku, Remote Host and Running Commands

Heroku is our hosting service, and has various commands that make it easy to debug and interact with prod environment systems.

To run a command on a Heroku remote host, use heroku run <command>, where command is the command you would run locally in terminal/bash, etc.

For example, locally one may want to run flask shell to work with imported values and ORM sqlalchemy. Asking Heroku to do the same via heroku run flask shell will perform the same command but on our remote host. This is good, since we can easily fix things unrelated to src code through local console!

app.config['key']

About

Server to handle VEEP website and to possibly offer other services to external clients (dashboarding, excel exports).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 49.5%
  • HTML 41.9%
  • CSS 5.6%
  • JavaScript 2.4%
  • Mako 0.6%