GithubHelp home page GithubHelp logo

dantintle / appengine-endpoints-helloendpoints-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlearchive/appengine-endpoints-helloendpoints-python

1.0 2.0 0.0 222 KB

License: Apache License 2.0

Python 21.24% HTML 38.71% JavaScript 40.05%

appengine-endpoints-helloendpoints-python's Introduction

Hello Endpoints Python

A Python "Hello World" skeleton application for Google App Engine using Google Cloud Endpoints.

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 installed too.

  2. Clone this repo with

    git clone https://github.com/GoogleCloudPlatform/appengine-endpoints-helloendpoints-python.git
    
  3. Run the application locally with

    cd appengine-endpoints-helloendpoints-python
    dev_appserver.py .
    
  4. Test your Endpoints by visiting the Google APIs Explorer (by default http://localhost:8000/_ah/api/explorer)

Deploy

To deploy the application:

  1. Use the Admin Console to create an app.

  2. Replace your-app-id in app.yaml with the app id from the previous step.

  3. Optional step: These sub steps are not required but will enable the "Authenticated Greeting" functionality.

    1. Update the values in helloworld_api.py to reflect the respective client IDs you have registered in the console.
    2. Update the value of google.devrel.samples.helloendpoints.CLIENT_ID in static/js/base.js to reflect the web client ID you have registered in the console.
  4. Deploy the application with:

    appcfg.py --oauth2 update .
    

    or use the App Engine Launcher.

  5. Congratulations! Your application is now live at your-app-id.appspot.com.

  6. Generate the Android client library with:

    endpointscfg.py get_client_lib java -o . helloworld_api.HelloWorldApi
    

    or for Gradle projects:

    endpointscfg.py get_client_lib java -bs gradle -o . helloworld_api.HelloWorldApi
    

    The library will connect to your deployed application. If you change your app ID, you must regenerate the client library.

Next Steps

This skeleton includes TODO markers you can search for to determine some of the basic areas you will want to customize.

Consuming APIs

Building the backend is one part of Cloud Endpoints. See how you can consume your APIs from Android, iOS, or the web by reading the documentation.

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

appengine-endpoints-helloendpoints-python's People

Contributors

agangloff avatar danholevoet avatar dhermes avatar ebidel avatar proppy avatar

Stargazers

 avatar

Watchers

 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.