Code Monkey home page Code Monkey logo

orator-google-app-engine's Introduction

Orator port for Google App Engine with Bottle Framework or webapp2 and File Helper

You can use this project for your App Engine application.

Orator is a Eloquent (Laravel) port to Python, a very useful ORM library.

HowTo Configure your project

app.yaml:

  • set "application" field as your application ID
  • set "version" field as your application version
  • set "api_version" field as your API version

Config/config.py:

  • modify config variable with your online/local application (user, password, unix_socket in the first "config"; user, password in the second "config")

FileHelper/file_helper.py (if you need File Helper, or simply delete FileHelper directory):

  • modify "your GS dir/" with your Google Storage Directory

HowTo Configure this project in localhost

Windows:

  • install Python 2.7 (note: check if HKEY_CURRENT_USER/Software/Python/PythonCore/2.7 variable in regedit is setted)
  • install C++ compiler library for Python
  • install MySql Python connector (MySQLdb)
  • install MySql Python client connector (_mysqli)
  • install Google App Engine SDK for Python optionally:
  • install PyCharm or Visual Studio 2015 + PTVS (Python Tools for Visual Studio)

Simple example

With this library, you can use it as a demo and modify for your own purposes.

The file main.py contains the main program, that simply imports a Controller (UserController) that contains a simple method (get user data from database). You can test via REST API GET http calls. In this example, "/user_controller/get_profile/{ID}" return all data for user that have id "ID" formatted in JSON. All controllers is located in "Controllers" directory.

The "Models" directory contains Entity definition according to ORM Eloquent standard (table, hidden, fillable, relations etc...).

Credits

The orator project belongs to MakarenaLabs and source code was written by Enrico Giordano.

See Original Orator library: https://github.com/sdispater/orator

Modified to run on webapp2 by Kevin Driedger

orator-google-app-engine's People

Contributors

kdriedger-simutech avatar enricogiordano1992 avatar

Stargazers

Benjamin Hockley avatar

Watchers

 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.