GithubHelp home page GithubHelp logo

fariias / tekton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from renzon/tekton

1.0 2.0 0.0 1.8 MB

A full stack project based on tekton, gaegraph, gaeforms and gaepermission

License: MIT License

Python 69.24% CSS 0.25% HTML 24.89% JavaScript 3.72% Batchfile 1.07% Shell 0.83%

tekton's Introduction

Tekton

A full stack project for Google App Engine based on modules Tekton-micro, Gaegraph, Gaeforms and Gaepermission, Jinja2 and Babel

This application is running on https://tekton-fullstack.appspot.com

  1. Book App Engne and Python in pt_BR
  2. Vìdeos about the project in pt_BR

Installation:

  • Install Google App Engine SDK
  • Download the tekton source code
  • Run venv.sh to create virtual env cd backend/venv && ./venv.sh (venv.bat if you use Windows)
  • Virtualenv source ./bin/activate
  • Execute server on backend/appengine folder cd ../appengine && dev_appserver.py .
  • See if it works on http://localhost:8080

python manager.py

manager.py is Tekton’s command-line utility for code generation.

Commands available

  • model
  • app
  • delete

app

It's possible to determine the app creation, specifying the name and the central entity from the module. Example:

python manager.py app course Course title:string price:currency begin:date

  • int: integer number.
  • float: floating-point number.
  • decimal: floating-point number with 2 decimal precision.
  • currency: money with 2 decimal precision.
  • string: string of characters
  • date: day, month and year.
  • datetime: day, month, year, hour, minutes and seconds.

Quickstart

This is how you create a Hello World using Tekton.

# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from config.template_middleware import TemplateResponse
from gaecookie.decorator import no_csrf
from gaepermission.decorator import login_not_required


@login_not_required
@no_csrf
def index():
  _resp.write('Hello world')

Just save it as hello.py inside backend/appengine/routes and run your server on appengine directory.

dev_appserver.py .

Now head over to http://localhost:8080/hello/, and you should see your Hello world! greeting.

Contributors:

tekton's People

Contributors

renzon avatar guidobr avatar lucasgcampos avatar willianribeiro avatar

Stargazers

Junior Farias avatar

Watchers

James Cloos avatar Junior Farias 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.