Skip to content

2018-SanJose-Opportunity-Hack/Team17

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Import imports

import everything in util.imports
then import from util.import import *

to get config

from Team17.config import file_config
config = file_config()
config.get('SECTION','key')

for logging:

from Team17.util import logger
log = logger.getLogger(name)
log.info("for info")
log.error("for error")
log.exception("for raising exception")

for db:

from Team17.util import fetch_query, update_query
result = fetch_query(query)

run services

webhook: python webhook.py
./ngrok http 5000
service: python app.py
./ngrok http 30000

To run dashbord:

go to frontend/hackaton
npm install
npm start

Setup webhook for twillio make call apis

The webhook.py is a flask app that has to be run and need to have a public url
update the urls in config.ini in the section [TWIML]

The main web service is app.py

This is again a flask app and should be run in prod in a webserver like gunicorn or nginx

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published