No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contrivers
tests
.gitignore
.travis.yml
Makefile
Procfile
README.md
pylintrc
pytest.ini
requirements.txt
run.py
setup.py
test-requirements.txt

README.md

Contrivers' Review

Build Status

Contrivers' Review

Develop

  1. Python
brew install python3 postgresql
python3 -m pip install virtualenvwrapper
  1. Git
brew install git
  1. Clone
git clone https://github.com/contrivers-publishing/contrivers1.0
  1. Create a virtualenv mkvirtualenv -a <venv> -r requirements.txt -r test-requirements.txt <venv name>

  2. Create a postgres database

by cloning from heroku...

heroku pg:pull DATABASE_URL postgres://<username>@localhost/contrivers-develop --app contrivers[-develop]

or by initializing it via flask-sqlalchemy:

createdb contrivers-develop

the create.py file:

from app import create_app, db

app = create_app(extra_config_vars={'SQLALCHEMY_DATABASE_URI'=<uri>})

with app.test_request_context():
    db.create_all()
  1. Start a dev server
python run.py --help
python run.py --testing --debug

In your browser, open the http://localhost:8000

if you have heroku installed, you can also test the app by running...

heroku local web

Deploying

Testing