舉報

會員
Hands-On Full Stack Development with Go
TheGoprogramminglanguagehasbeenrapidlyadoptedbydevelopersforbuildingwebapplications.Withitsimpressiveperformanceandeaseofdevelopment,Goenjoysthesupportofawidevarietyofopensourceframeworks,forbuildingscalableandhigh-performantwebservicesandapps.Hands-OnFullStackDevelopmentwithGoisacomprehensiveguidethatcoversallaspectsoffullstackdevelopmentwithGo.Thisclearlywritten,example-richbookbeginswithapracticalexposuretoGodevelopmentandmovesontobuildafrontendwiththepopularReactframework.Fromthere,youwillbuildRESTfulwebAPIsutilizingtheGinframework.Afterthat,wewilldivedeeperintoimportantsoftwarebackendconcepts,suchasconnectingtothedatabaseviaanORM,designingroutesforyourservices,securingyourservices,andevenchargingcreditcardsviathepopularStripeAPI.Wewillalsocoverhowtotest,andbenchmarkyourapplicationsefficientlyinaproductionenvironment.Intheconcludingchapters,wewillcoverisomorphicdevelopmentsinpureGobylearningaboutGopherJS.Asyouprogressthroughthebook,you'llgraduallybuildamusicalinstrumentonlinestoreapplicationfromscratch.Bytheendofthebook,youwillbeconfidentintakingonfullstackwebapplicationsinGo.
目錄(218章)
倒序
- coverpage
- Title Page
- Copyright and Credits
- Hands-On Full Stack Development with Go
- Dedication
- About Packt
- Why subscribe?
- Packt.com
- Contributors
- About the author
- About the reviewer
- Packt is searching for authors like you
- Preface
- Who this book is for
- What this book covers
- To get the most out of this book
- Download the example code files
- Download the color images
- Conventions used
- Get in touch
- Reviews
- Section 1: The Go Language
- Welcome to Full Stack Go
- What is full stack development?
- What will we build?
- The application architecture
- The outline of this book
- Building Blocks of the Go Language
- Technical requirements
- Go's playground
- Setting up Go's workspace
- Packages variables data types and pointers
- Packages
- Variables and data types
- Pointers
- Functions and closures
- Functions – the basics
- Functions – accessing functions from other packages
- Closures
- Go data structures
- Arrays
- Slices
- Maps
- Struct
- Methods
- Type embedding
- Interfaces
- Conditional statements and loops
- The if statement
- The switch statement
- Loops
- Panics recovers and defers
- Summary
- Questions
- Further reading
- Go Concurrency
- What is concurrency?
- Goroutines
- Go channels
- Regular channels
- Buffered channels
- The select statement
- The sync package
- The simple mutex
- The read-write mutex
- Wait groups
- Summary
- Questions
- Further reading
- Section 2: The Frontend
- Frontend with React.js
- Prerequisites and technical requirements
- The GoMusic project
- Node.js and the npm
- HTML CSS and Bootstrap
- Project code
- The React framework
- How to construct React applications
- Setting up the project
- Installing React
- Preparing the new project
- JSX and React elements
- React components
- React application design
- Props
- State
- Initializing the state object
- Setting our state
- Developer tools
- Summary
- Questions
- Further reading
- Building a Frontend for GoMusic
- Prerequisites and technical requirements
- Building GoMusic
- Main pages
- The navigational menu
- The Products and Promotions pages
- The About page
- Modal dialog windows and handling credit cards
- The Buy Item modal window outline
- Credit card handling with React and Stripe
- Creating a child React component to host Stripe elements
- Making use of Stripe elements to handle credit card information
- Submitting a credit card token to the backend
- Creating a parent StripeProvider component
- The Sign in and Register modal windows
- Handling forms in the React framework
- The Sign in page
- The Registration form
- User pages
- The orders page
- The user page navigational menu
- Putting it all together – routes
- Summary
- Questions
- Further reading
- Section 3: Web APIs and Middleware in Go
- RESTful Web APIs in Go with the Gin Framework
- Technical requirements
- RESTful APIs
- Overview
- The client-server architecture
- URLs
- HTTP methods
- The Gin framework
- Models and the database layer
- Models
- The database layer interface
- Implementing RESTful APIs using the Gin framework
- Defining routes
- Creating handlers
- Getting a full list of available products
- Getting a list of promotions
- Sign in new users or add new users
- Sign out requests
- Getting orders for a specific user
- Charging a credit card
- Putting it all together
- Summary
- Questions
- Further reading
- Advanced Web Go Applications with Gin and React
- Technical requirements
- The database layer
- Relational databases
- Setting up
- The customer table
- The orders table
- The products table
- ORM
- GORM
- Implementing the database layer
- Middleware
- Custom middleware
- Security
- Certificates and private keys
- Establishing trust between the client and the server
- Agreeing on and using an encryption key
- Supporting HTTPS in Gin
- Password hashing
- Implementing password hashing
- Comparing the password
- Credit card handling
- Credit card handling at the backend
- Revisiting the frontend code
- The app structure
- Interactions between the frontend and the backend
- Using cookies
- Deploying the frontend application
- Summary
- Questions
- Further reading
- Testing and Benchmarking Your Web API
- Testing in Go
- Mocking
- Creating a mock db type
- Unit testing in Go
- Table-driven development
- Benchmarking
- Summary
- Questions
- Further reading
- Introduction to Isomorphic Go with GopherJS
- Technical requirements
- GopherJS fundamentals
- GopherJS types
- Object types
- Calling JavaScript functions from your Go code
- GopherJS commands
- Go bindings
- Exporting code
- Go Methods
- Goroutines
- GopherJS with React
- The project
- The project application's architecture
- Building the React application in Go
- Building a custom component
- Summary
- Questions
- Further reading
- Where to Go from Here?
- Cloud-native applications
- Microservices
- Containers
- Serverless applications
- Continuous delivery
- React Native
- What is React Native?
- React.js versus React Native
- Similarities between React.js and React Native
- Differences between React.js and React Native
- Expo
- Summary
- Questions
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-07-02 12:34:03
推薦閱讀
- Beginning Java Data Structures and Algorithms
- JavaScript 網頁編程從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- R語言數據可視化之美:專業圖表繪制指南
- Android 9 Development Cookbook(Third Edition)
- Mastering AndEngine Game Development
- Hands-On RESTful Web Services with Go
- Python面向對象編程:構建游戲和GUI
- 青少年Python編程入門
- Python忍者秘籍
- Tableau Desktop可視化高級應用
- Mobile Forensics:Advanced Investigative Strategies
- Greenplum構建實時數據倉庫實踐
- Maven for Eclipse
- 精通Spring:Java Web開發與Spring Boot高級功能
- MongoDB Administrator’s Guide
- PostgreSQL 12 High Availability Cookbook
- Mastering Clojure
- Android Application Programming with OpenCV 3
- Learning Ext JS(Fourth Edition)
- C#從入門到精通(第5版)
- Spark內核設計的藝術:架構設計與實現
- C#大學實用教程
- Gamification with Moodle
- HTML5技術與移動出版
- Python數據分析、挖掘與可視化(慕課版)
- Building Web Applications with Python and Neo4j
- RHCSA/RHCE8紅帽Linux認證學習教程
- Oracle Solaris 11:First Look
- Visual Basic程序設計教程(第3版)
- JavaScript at Scale