Skip to content

This might be able to talk to BigQuery, yet to clean up the code.

License

Notifications You must be signed in to change notification settings

nareshganatra/work_in_progress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api.ai webhook on Google App Engine

Python Flask Skeleton taken from https://github.com/GoogleCloudPlatform/appengine-try-python-flask.git Goal is to have this working to fetch data from Google BigQuery Public Dataset as seen in my video demo . I will get to that in the next few days

Author

Naresh Ganatra ... added code/module to work with api.ai

Run Locally

  1. Install the App Engine Python SDK. See the README file for directions. You'll need python 2.7 and pip 1.4 or later installed too.

  2. Clone this repo with

    git clone https://github.com/GoogleCloudPlatform/appengine-flask-skeleton.git
    
  3. Install dependencies in the project's lib directory. Note: App Engine can only import libraries from inside your project directory.

    cd appengine-flask-skeleton
    pip install -r requirements.txt -t lib
    
  4. Run this project locally from the command line:

    dev_appserver.py .
    

Visit the application http://localhost:8080

See the development server documentation for options when running dev_appserver.

Deploy

To deploy the application:

  1. Use the Admin Console to create a project/app id. (App id and project id are identical)

  2. Deploy the application with

    appcfg.py update -A <your-project-id> -V v1 .
    

    If this isn't your first deployment, you will need to set the new version as the default version with

    appcfg.py set_default_version -V v1 -A <your-project-id>
    
  3. Congratulations! Your application is now live at your-app-id.appspot.com

Next Steps

This skeleton includes TODO markers to help you find basic areas you will want to customize.

Relational Databases and Datastore

To add persistence to your models, use NDB for scale. Consider CloudSQL if you need a relational database.

Installing Libraries

See the Third party libraries page for libraries that are already included in the SDK. To include SDK libraries, add them in your app.yaml file. Other than libraries included in the SDK, only pure python libraries may be added to an App Engine project.

Feedback

Star this repo if you found it useful. Use the github issue tracker to give feedback on this repo.

Licensing

See LICENSE

About

This might be able to talk to BigQuery, yet to clean up the code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages