Git Product home page Git Product logo

appengine-python-bottle-scaffold's Introduction

Python Bottle Framework Scaffold for Google App Engine

+status: inactive

A scaffold for building Python applications on Google App Engine with the Bottle micro framework version 0.11.6

This scaffold is targeted at web applications, but can easily be modified for other use cases. A directory structure is included:

  • code that runs on the server is under server/ and includes a MVC structure that separates controllers, models, and views into subdirectories.
  • code that runs in the browser is under client/ and includes images and scripts. Add you favorite client side framework here.

See our other Google Cloud Platform github repos for sample applications and scaffolding for other python frameworks and use cases.

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 <project URL>
    
  3. Install dependencies in the project's server/lib directory - App Engine can only import libraries from inside your project directory.

    cd <project_directory>
    pip install -r requirements.txt -t server/lib
    
  4. Run this project locally from the command line:

    dev_appserver.py <projectDirectory>
    

See the output in your browser at http://localhost:8080/RESOURCE_NAME/1

See the development server documentation for options when running dev_appserver.

Deploy

To deploy the application:

  1. Use the Admin Console to create an app and get the project/app id. (App id and project id are identical)
  2. Deploy the application with
appcfg.py -A <your-project-id> --oauth2 update <projectDirectory>

or use the App Engine Launcher.

  1. Congratulations! Your application is now live at your-project-id.appspot.com

Next Steps

This scaffold includes TODO markers you can search for to determine some of the 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 and to ask for scaffolds for other use cases.

Contributing changes

See CONTRIB.md

Licensing

See LICENSE

Author

Logan Henriquez

appengine-python-bottle-scaffold's People

Contributors

elibixby avatar fredsa avatar henriquez avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.