19
Email: [email protected] Twitter: @renzonuccitec www.python.pro.br

App Engine, Python e REST

Embed Size (px)

DESCRIPTION

Slides de curso focado em fazer uma aplicação REST utilizando Python, Google App Engine, JSON e AngularJS. Esse curso foi ministrado no evento Summer Labs da Startup Farm, em parceria com o site Python Pro.

Citation preview

Page 1: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

www.python.pro.br

Page 2: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

App Engine e PythonVocê programa e o Google escala!

Page 3: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Bio - Renzo Nuccitelli

Engenheiro de Computação - ITA 2008Especialista em Google App EngineColunista do IMastersInstrutor Python Pro (www.python.pro.br)Contatos

Email: [email protected]: @renzonuccitec

Page 4: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Backend e RESTBD, JSON e AngularJS

Page 5: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Roteiro

App de MatrículaZenwarch/Google App EngineFormModeloPesquisaRelacionamentoJSONAngular

Page 6: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

App de Matrícula

AlunosCursosMatrículas

https://github.com/renzon/zenrest

Divididos em 10 passos *

Page 7: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Zenwarch/Google App Engine

git checkout passo1SDKhttps://github.com/renzon/zenwarchproject_templatevenv e PycharmAulas 1 e 7 https://www.facebook.com/pythonappengineCopiar pacote zen direto em src/lib *

Page 8: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Zenwarch/Google App Engine

git checkout passo2home.html_write_tmplRoteamento para home.index *

Page 9: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Zenwarch/Google App Engine

git checkout passo3Módulo alunoRoteamento para aluno.indexRoteamento para aluno.form *

Page 10: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Form

git checkout passo 4Formulário html simplesConvenção de parâmetrosobjeto _resp *

Page 11: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Modelo Aluno

git checkout passo 5Módulo ndbClasse ModelStringPropertyMétodo put()Objeto _handlerDatastore Viewer *

Page 12: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Modelo Curso

git checkout passo 6CRUD Análogo ao anterior *

Page 13: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Listando Cursos

git checkout passo 7

Objeto QueryMétodo fetchfor do Jinja2 *

Page 14: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Matrícula

git checkout passo 8Relacionamento n x mDateTimePropertyKeyPropertyObjeto Key *

Page 15: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

REST Matrículas

git checkout passo 9Agrupar chavesBuscar no BancoMétodo to_dict()Transformar lista dicionários em JSON *

Page 16: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

AngularJS

git checkout passo 10Instalar JS via pasta staticDiretivaParâmetrosConsumir REST via $http *

Page 17: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Como se aprofundar?

Vídeo aulas grátis:https://www.facebook.com/pythonappengine

LivroDe graça para quem pagou50% de desconto para quem participou desse curso *

Page 18: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Cursos Python Pro

PyPráticoObjetos PythônicosPython para quem estudou JavaPython para quem sabe PythonGoogle App Engine *

Page 19: App Engine, Python e REST

Email: [email protected] Twitter: @renzonuccitec

Obrigado

[email protected]@renzonuccitec