Giter Club home page Giter Club logo

cloud-native-programming-with-golang's Introduction

Cloud native programming with Golang

This is the code repository for Cloud-Native-programming-with-Golang, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

Cloud computing and microservices are two very important concepts in modern software architecture. They represent key skills that ambitious software engineers need to acquire in order to design and build software applications capable of performing and scaling. Go is a modern cross-platform programming language that is very powerful yet simple; it is an excellent choice for microservices and cloud applications. Go is gaining more and more popularity, and becoming a very attractive skill.

Instructions and Navigations

All of the codes are organized as per the chapters, each folder has the codes related to that chapter or appendix. Some parts of the code are dependant on the frontend and backend repository.

For example: Cloud-Native-programming-with-Golang/Chapter04/src/bookingservice/main.go The code will look like the following:

import (
	"flag"

	"github.com/Shopify/sarama"
	"github.com/martin-helmich/cloudnativego-backend/src/bookingservice/listener"
	"github.com/martin-helmich/cloudnativego-backend/src/bookingservice/rest"
	"github.com/martin-helmich/cloudnativego-backend/src/lib/configuration"
	"github.com/martin-helmich/cloudnativego-backend/src/lib/msgqueue"
	msgqueue_amqp "github.com/martin-helmich/cloudnativego-backend/src/lib/msgqueue/amqp"
	"github.com/martin-helmich/cloudnativego-backend/src/lib/msgqueue/kafka"
	"github.com/martin-helmich/cloudnativego-backend/src/lib/persistence/dblayer"
	"github.com/streadway/amqp"
)

Related Products

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781787125988

cloud-native-programming-with-golang's People

Contributors

githubce avatar minaandrawos avatar packt-itservice avatar packtutkarshr avatar prashantmishrapackt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloud-native-programming-with-golang's Issues

typo on page 125.

module.exports = {
entry: "./src/index.tsx",
output: {
filename: "bundle.js",
path: __dirname + "/dist"
},
resolve: {
extensions: [".ts", ".tsx"]
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: "awesome-typescript-loader"
}
]
},
externals: {
"react": "React",
"react-dom": "ReactDOM"
}
}

i think in the extensions you need to include *.js like this (and maybe .css)

resolve: {
extensions: [".js",".ts", ".tsx"]
},

otherwise it will not compile

Webpack fails in chapter 05

Running webpack in frontend/ returns the following error:

ERROR in ./src/index.tsx
Module build failed (from ./node_modules/ts-loader/index.js):
TypeError: Cannot read property 'ts' of undefined
    at getLoaderOptions (/Users/seanknox/go/src/github.com/PacktPublishing/Cloud-Native-programming-with-Golang/Chapter05/frontend/node_modules/ts-loader/dist/index.js:70:44)
    at Object.loader (/Users/seanknox/go/src/github.com/PacktPublishing/Cloud-Native-programming-with-Golang/Chapter05/frontend/node_modules/ts-loader/dist/index.js:23:19)

had trouble building Chapter02

in order to install packages and build the main, i had to edit some of the source files paths. I changed "chaper02" to "Chapter02", i.e from lowercase c to uppercase.
for example in mongolayer.go
i changed
"github.com/PacktPublishing/Cloud-Native-programming-with-Golang/chapter02/myevents/src/lib/persistence"

to this

"github.com/PacktPublishing/Cloud-Native-programming-with-Golang/Chapter02/myevents/src/lib/persistence"

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.