Skip to content

bnookala/gig

 
 

Repository files navigation

Gigaware dev guide

This project is built using the Flask web framework. It runs on Python 2.7 or 3.4+.

  1. To run the app locally, first clone this repository and cd into it.

  2. Create a new virtual environment.

    • If using vanilla virtualenv:

      virtualenv venv
      source venv/bin/activate
      
  3. Install the requirements.

    pip install -r requirements.txt
    
  4. Copy the .env_example file to secrets.sh, and edit it to include:

    • your [TWILIO_AUTH_TOKEN]
    • your [Twilio API key]
    • your [TWILIO_NUMBER]
    • your [TWILIO_ACCOUNT_SID]
    • your [SECRET_KEY]
    • your [DATABASE_URL]
  5. Run source secrets.sh to apply the environment variables

  6. Run the postgresql server

  7. Create the gigaware database in your local enviornment

    • run psql gigaware to verify that the db doesn't already exist
    • createdb gigaware
    • db.create_all()
  8. Run python manage.py db upgrade to build migration models for the db and python manage.py db downgrade to drop the tables

  9. Run python manage.py runserver to start the app

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 57.8%
  • HTML 28.7%
  • CSS 6.8%
  • JavaScript 6.1%
  • Mako 0.6%