万本电子书0元读

万本电子书0元读

顶部广告

Go Web Development Cookbook电子书

售       价:¥

17人正在读 | 0人评论 9.8

作       者:Arpit Aggarwal

出  版  社:Packt Publishing

出版时间:2018-04-23

字       数:28.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
86 recipes on how to build fast, scalable, and powerful web services and applications with Go About This Book ? Become proficient in RESTful web services ? Build scalable, high-performant web applications in Go ? Get acquainted with Go frameworks for web development Who This Book Is For This book is for Go developers interested in learning how to use Go to build powerful web applications. A background in web development is expected. What You Will Learn ? Create a simple HTTP and TCP web server and understand how it works ? Explore record in a MySQL and MongoDB database ? Write and consume RESTful web service in Go ? Invent microservices in Go using Micro – a microservice toolkit ? Create and Deploy the Beego application with Nginx ? Deploy Go web application and Docker containers on an AWS EC2 instance In Detail Go is an open source programming language that is designed to scale and support concurrency at the language level. This gives you the liberty to write large concurrent web applications with ease. From creating web application to deploying them on Amazon Cloud Services, this book will be your one-stop guide to learn web development in Go. The Go Web Development Cookbook teaches you how to create REST services, write microservices, and deploy Go Docker containers. Whether you are new to programming or a professional developer, this book will help get you up to speed with web development in Go. We will focus on writing modular code in Go; in-depth informative examples build the base, one step at a time. You will learn how to create a server, work with static files, SQL, NoSQL databases, and Beego. You will also learn how to create and secure REST services, and create and deploy Go web application and Go Docker containers on Amazon Cloud Services. By the end of the book, you will be able to apply the skills you've gained in Go to create and explore web applications in any domain. Style and approach This book helps you learn core Go concepts faster by taking a recipe-based approach.
目录展开

Title Page

Copyright and Credits

Go Web Development Cookbook

Dedication

Packt Upsell

Why subscribe?

PacktPub.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

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Get in touch

Reviews

Creating Your First Server in Go

Introduction

Creating a simple HTTP server

How to do it…

How it works…

Implementing basic authentication on a simple HTTP server

Getting ready

How to do it…

How it works…

Optimizing HTTP server responses with GZIP compression

How to do it…

How it works…

Creating a simple TCP server

How to do it…

How it works…

Reading data from a TCP connection

Getting ready…

How to do it…

How it works…

Writing data to a TCP connection

Getting ready…

How to do it…

How it works…

Implementing HTTP request routing

How to do it…

How it works…

Implementing HTTP request routing using Gorilla Mux

How to do it…

How it works…

Logging HTTP requests

Getting Ready…

How to do it…

How it works…

Working with Templates, Static Files, and HTML Forms

Introduction

Creating your first template

How to do it…

How it works…

Serving static files over HTTP

Getting ready…

How to do it…

How it works…

Serving static files over HTTP using Gorilla Mux

Getting ready…

How to do it…

How it works…

Creating your first HTML form

How to do it…

How it works…

Reading your first HTML form

Getting ready…

How to do it…

How it works…

Validating your first HTML form

Getting ready…

How to do it…

How it works…

Uploading your first file

How to do it…

How it works…

Working with Sessions, Error Handling, and Caching in Go

Introduction

Creating your first HTTP session

How to do it…

How it works…

Managing your HTTP session using Redis

Getting ready…

How to do it…

How it works…

Creating your first HTTP cookie

How to do it…

How it works…

Implementing caching in Go

How to do it…

How it works…

Implementing HTTP error handling in Go

How to do it…

How it works…

Implementing login and logout in web application

Getting ready…

How to do it…

How it works…

Writing and Consuming RESTful Web Services in Go

Introduction

Creating your first HTTP GET method

How to do it…

How it works…

Creating your first HTTP POST method

How to do it…

How it works…

Creating your first HTTP PUT method

How to do it…

How it works…

Creating your first HTTP DELETE method

How to do it…

How it works…

Versioning your REST API

How to do it…

How it works…

Creating your first REST client

Getting ready…

How to do it…

How it works…

Creating your first AngularJS Client

Getting ready…

How to do it…

How it works…

Creating your first ReactJS client

Getting ready…

How to do it…

How it works…

Creating your first VueJS client

Getting ready…

How to do it…

How it works…

Working with SQL and NoSQL Databases

Introduction

Integrating MySQL and Go

Getting ready…

How to do it…

How it works…

Creating your first record in MySQL

Getting ready…

How to do it…

How it works…

Reading records from MySQL

How to do it…

How it works…

Updating your first record in MySQL

How to do it…

How it works…

Deleting your first record from MySQL

How to do it…

How it works…

Integrating MongoDB and Go

Getting ready…

How to do it…

How it works…

Creating your first document in MongoDB

How to do it…

How it works…

Reading documents from MongoDB

How to do it…

How it works…

Updating your first document in MongoDB

How to do it…

How it works…

Deleting your first document from MongoDB

How to do it…

How it works…

Writing Microservices in Go Using Micro – a Microservice Toolkit

Introduction

Creating your first protocol buffer

Getting ready…

How to do it…

How it works…

Spinning up a microservice discovery client

Getting ready…

How to do it…

How it works…

Creating your first microservice

Getting ready…

How to do it…

How it works…

Creating your second microservice

How to do it…

How it works…

Creating your Micro API

Getting ready…

How to do it…

How it works…

Interacting with microservices using a command-line interface and web UI

How to do it…

How it works…

Working with WebSocket in Go

Introduction

Creating your first WebSocket server

How to do it…

How it works…

Creating your first WebSocket client

How to do it…

How it works…

Debugging your first local WebSocket server

Getting ready…

How to do it…

How it works…

Debugging your first remote WebSocket server

How to do it…

How it works…

Unit testing your first WebSocket server

How to do it…

How it works…

Working with the Go Web Application Framework – Beego

Introduction

Creating your first project using Beego

How to do it…

How it works…

Creating your first controller and router

How to do it…

How it works…

Creating your first view

How to do it…

How it works…

Creating your first session variable

Getting ready…

How to do it…

How it works…

Creating your first filter

How to do it…

How it works…

Handling HTTP errors in Beego

How to do it…

How it works…

Implementing caching in Beego

How to do it…

How it works…

Monitoring the Beego application

How to do it…

How it works…

Deploying the Beego application on a local machine

How to do it…

How it works…

Deploying the Beego application with Nginx

Getting ready…

How to do it…

How it works…

Working with Go and Docker

Introduction

Building your first Go Docker image

Getting ready…

How to do it…

How it works…

Running your first Go Docker container

How to do it…

How it works…

Pushing your Docker image to the Docker Registry

How to do it…

How it works…

Creating your first user-defined bridge network

How to do it…

How it works…

Running a MySQL Docker image on a user-defined bridge network

How to do it…

How it works…

Building a Go web application Docker image

How to do it…

How it works…

Running a web application Docker container linked with a MySQL Docker container on a user-defined bridge network

How to do it…

How it works…

Securing a Go Web Application

Introduction

Creating a private key and SSL certificate using OpenSSL

Getting ready…

How to do it…

How it works…

Moving an HTTP server to HTTPS

How to do it…

How it works…

Defining REST APIs and routes

How to do it…

How it works…

Creating a JSON web token

How to do it…

How it works…

Securing a RESTful service using a JSON web token

How to do it…

How it works…

Preventing cross-site request forgery in Go web applications

How to do it…

How it works…

Deploying a Go Web App and Docker Containers to AWS

Introduction

Creating your first EC2 instance to run a Go web application

Getting ready…

How to do it…

How it works…

Interacting with your first EC2 instance

How to do it…

How it works…

Creating, copying, and running a Go web application on your first EC2 instance

How to do it…

How it works…

Setting up an EC2 instance to run a Docker container

How to do it…

How it works…

Pulling a Docker image on an AWS EC2 instance from Docker Hub

How to do it…

How it works…

Running your Go Docker container on an EC2 instance

How to do it…

How it works…

Other Books You May Enjoy

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部