Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
How We Use Go To Do Web Development
Search
Jinzhu
November 15, 2015
Programming
19
5.7k
How We Use Go To Do Web Development
GDG DevFest 2015 @ HangZhou
Jinzhu
November 15, 2015
Tweet
Share
Other Decks in Programming
See All in Programming
「今のプロジェクトいろいろ大変なんですよ、app/services とかもあって……」/After Kaigi on Rails 2024 LT Night
junk0612
5
2.2k
watsonx.ai Dojo #4 生成AIを使ったアプリ開発、応用編
oniak3ibm
PRO
1
190
初めてDefinitelyTypedにPRを出した話
syumai
0
430
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
650
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
530
WebフロントエンドにおけるGraphQL(あるいはバックエンドのAPI)との向き合い方 / #241106_plk_frontend
izumin5210
4
1.4k
Less waste, more joy, and a lot more green: How Quarkus makes Java better
hollycummins
0
100
受け取る人から提供する人になるということ
little_rubyist
0
250
Jakarta EE meets AI
ivargrimstad
0
230
Tauriでネイティブアプリを作りたい
tsucchinoko
0
380
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
340
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
260
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
10 Git Anti Patterns You Should be Aware of
lemiorhan
655
59k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Music & Morning Musume
bryan
46
6.2k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Why Our Code Smells
bkeepers
PRO
334
57k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
For a Future-Friendly Web
brad_frost
175
9.4k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Optimizing for Happiness
mojombo
376
70k
Transcript
How we use Go to do web development Jinzhu @
The Plant github.com/jinzhu
About Me
Design Pattern
MVC - Controller • Full Featured Framework ? • Minimalistic
Framework ?
MVC - Controller • Full Featured Framework • Minimalistic Framework
-> Gin github.com/gin-gonic/gin
MVC - Controller middleware route controller
MVC - Model • Hand Written SQL ? • ORM
?
MVC - Model • Hand Written SQL • ORM ->
Gorm github.com/jinzhu/gorm
MVC - Model
MVC - View • Browser Side Views ? • Server
Side Views ?
MVC - View • Browser Side Views -> React •
Server Side Views -> Go Template
API • RESTful API • GraphQL
Front End Stuff WebPack • css/sass • javascript • image
sprites
Deployment • Single Binary File -> Bindata github.com/jteeuwen/go-bindata • Deploy
binary file to server -> Harp github.com/bom-d-van/harp
Zero Downtime • Endless -> port github.com/fvbock/endless • Grace ->
port / socket github.com/facebookgo/grace
Data Administration QOR Demo: demo.getqor.com/admin Github Repoғgithub.com/qor/qor
QOR
QOR Initialize Add Resource Authorization
Not Only About Administration But everything about Web Development
Publish
Publish Just one line code
Localization
Localization Also one line code
Localization
Sorting
Sorting
Media Library
Media Library upload to filesystem upload to s3
How it works? No Magic
How it works? GORM Callbacks & Duck Programming
GORM CRUD Callbacks Plugin System github.com/jinzhu/gorm/blob/master/doc/development.md
Create Callbacks As Example
Create Callbacks As Example
Create Callbacks As Example do things that the plugin want
to do
Lets create more things!
Thank You ‣ Jinzhu @ The Plant ‣ github.com/jinzhu ‣
[email protected]
We are hiring!