All Courses

Building Web Applications with Go – Intermediate Level

Building Web Applications with Go - Intermediate Level Learn how to build a secure eCommerce application with Go (Golang)
Building Web Applications with Go - Intermediate Level Learn how to build a secure eCommerce application with Go (Golang)

Building Web Applications with Go – Intermediate Level

Learn how to build a secure eCommerce application with Go (Golang)

What you’ll learn

Building Web Applications with Go – Intermediate Level

  • How to build a front end website using Go
  • How to build a back end API using Go
  • Learn how to build multiple applications from a single code base
  • How to build microservices in Go
  • User authentication in Go
  • API authentication using stateful tokens
  • How to allow users to reset a password in a safe, secure manner
  • How to integrate Stripe credit card processing with a Go back end
  • Make one time or recurring payments with Stripe
  • Best practices for making secure credit card transactions

Requirements

  • A basic understanding of the Go programming language
  • The basic understanding of HTML, CSS, and JavaScript
  • A basic understanding of SQL syntax

Description

This course is the follow-up to Building Modern Web Applications in Go. In this course, we go further than we did the first time around. We will build a sample E-Commerce application that consists of multiple, separate applications: a front end (which services content to the end-user as web pages); a back end API (which is called by the front end as necessary), and a microservice that performs only one task, but performs it extremely well (dynamically building PDF invoices and sending them to customers as an email attachment).

The application will sell individual items, as well as allow users to purchase a monthly subscription.
All credit card transactions will be processed through Stripe, which is arguably one of the most popular payment processing systems available today, and for good reason: developers love it. Stripe offers a rich API (application programming interface), and it is available in more than 35 countries around the world and works with more than 135 currencies. Literally, millions of organizations and businesses use Stripe’s software and APIs to accept payments, send payouts, and manage their businesses online with the Stripe dashboard. However, in many cases, developers want to be able to build a more customized solution, and not require end-users to log in to both a web application and the Stripe dashboard. That is precisely the kind of thing that we will be covering in this course.

Building Web Applications with Go – Intermediate Level

We will start with a simple Virtual Terminal, which can be used to process so-called “card, not present” transactions. This will be a fully functional web application, built from the ground up on Go (sometimes referred to as Golang). The front end will be rendered using Go’s rich HTML/template package, and authenticated users will be able to process credit card payments from a secure form, integrated with the Stripe API. In this section of the course, we will cover the following:

  • How to build a secure, production-ready web application in Go
  • Learn how to capture the necessary information for a secure online credit card transaction
  • How to call the Stripe API from a Go back end to create a payment intend (Stripe’s object for authorizing and making a transaction)

Once we have that out of the way, we’ll build a second web application in the next section of the course, consisting of a simple website that allows users to purchase a product, or purchase a monthly subscription. Again, this will be a web application built from the ground up in Go. In this section of the course

We’ll cover the following:

  • How to allow users to purchase a single product
  • How to allow users to purchase a recurring monthly subscription (a Stripe Plan)
  • Learn how to handle cancellations and refunds
  • How to save all transaction information to a database (for refunds, reporting, etc).
  • How to refund a transaction
  • Learn how to cancel a subscription
  • How to secure access to the front end (via session authentication)
  • How to secure access to the back end API (using stateful tokens)
  • Learn how to manage users (add/edit/delete)
  • How to allow users to reset their passwords safely and securely
  • How to log a user out and cancel their account instantly, over WebSockets

Once this is complete, we’ll start work on the microservice. A microservice is a particular approach to software development that has the basic premise of building very small applications that do one thing but do it very well. A microservice does not care in the slightest about what application calls it; it is completely separate and completely agnostic. We’ll build a microservice that does the following:

  • Accepts a JSON payload describing an individual purchase
  • Produces a PDF invoice with information from the JSON payload
  • Creates an email to the customer, and attaches the PDF to it
  • Sends the email

All of these components (front end, back end, and microservice) will be built using a single code base that produces multiple binaries, using Gnu Make.

Who this course is for:

  • Developers who want to integrate Stripe into their applications
  • Who wants to learn how to build a back end API in Go
  • Developers who want to learn best practices for building modern applications in Go (and JavaScript)
  • Last updated 8/2021
Download Now Content From: https://www.udemy.com/course/building-web-applications-with-go-intermediate-level/

Advertisement

Advertisement

Categories

Advertisement