• Complain

Alex Edwards - Lets Go Further

Here you can read online Alex Edwards - Lets Go Further full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Alex Edwards Lets Go Further
  • Book:
    Lets Go Further
  • Author:
  • Genre:
  • Year:
    2021
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Lets Go Further: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Lets Go Further" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Alex Edwards: author's other books


Who wrote Lets Go Further? Find out the surname, the name of the author of the book and a list of all author's works by series.

Lets Go Further — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Lets Go Further" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Front Matter

Contents Chapter 1 Introduction In this book were going to work through the - photo 1

Contents
Chapter 1.
Introduction

In this book were going to work through the start-to-finish build of an application called Greenlight a JSON API for retrieving and managing information about movies. You can think of the core functionality as being a bit like the Open Movie Database API.

Ultimately, our Greenlight API will support the following endpoints and actions:

MethodURL PatternAction
GET/v1/healthcheckShow application health and version information
GET/v1/moviesShow the details of all movies
POST/v1/moviesCreate a new movie
GET/v1/movies/:idShow the details of a specific movie
PATCH/v1/movies/:idUpdate the details of a specific movie
DELETE/v1/movies/:idDelete a specific movie
POST/v1/usersRegister a new user
PUT/v1/users/activatedActivate a specific user
PUT/v1/users/passwordUpdate the password for a specific user
POST/v1/tokens/authenticationGenerate a new authentication token
POST/v1/tokens/password-resetGenerate a new password-reset token
GET/debug/varsDisplay application metrics

To give you an idea of what the API will look like from a clients point of view, by the end of this book the GET /v1/movies/:id endpoint will return a response similar this:

$ curl -H "Authorization: Bearer RIDBIAE3AMMK57T6IAEBUGA7ZQ" localhost:4000/v1/movies/1{ "movie": { "id": 1, "title": "Moana", "year": 2016, "runtime": "107 mins", "genres": [ "animation", "adventure" ], "version": 1 }}

Behind the scenes, well use PostgreSQL as the database for persistently storing all the data. And at the end of the book, well deploy the finished API to a Linux server running on Digital Ocean.

Conventions

In this book, code blocks are shown with a silver background like the snippet below. If the code block is particularly long, parts that arent relevant may be replaced with an ellipsis. To make it easy to follow along, most code blocks also have a title bar at the top indicating the name of the file that were working on.

File: hello.go package main ... // Indicates that some existing code has been omitted. func sayHello ( ) { fmt . Println ( "Hello world!" ) }

Terminal (command line) instructions are shown with a black background and generally start with a dollar symbol. These commands should work on any Unix-based operating system, including macOS and Linux. Sample output is shown in silver beneath the command, like so:

$ echo "Hello world!"Hello world!

If youre using Windows, you should replace these commands with the DOS equivalent or carry out the action via the normal Windows GUI.

Some chapters in this book end with an additional information section. These sections contain information that isnt relevant to our application build, but is still important (or sometimes, just interesting) to know about.

About the author

Hey, Im Alex Edwards, a full-stack web developer and author. I began working with Go in 2013, and have been teaching people and writing about the language for nearly as long.

Ive used Go to build a variety of production applications, from simple websites to high-frequency trading systems. I also maintain several open-source Go packages, including the popular session management system SCS.

I live near Innsbruck, Austria. You can follow me on GitHub, Instagram, Twitter and on my blog.

Copyright and disclaimer

Lets Go Further. Copyright 2021 Alex Edwards.

Last updated 2021-05-04 16:59:42 UTC. Version 1.0.0.

The Go gopher was designed by Renee French and is used under the Creative Commons 3.0 Attributions license. Cover gopher adapted from vectors by Egon Elbre.

The information provided within this book is for general informational purposes only. While the author and publisher have made every effort to ensure that the accuracy of the information within this book was correct at time of publication there are no representations or warranties, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the information, products, services, or related graphics contained in this book for any purpose. Any use of this information is at your own risk.

Chapter 1.1.
Prerequisites
Background knowledge

This book is written as a follow up to Lets Go, and well leverage a lot of the information and code patterns from that book again here.

If youve already read and enjoyed Lets Go, then this book should be a good fit for you and the ideal next step in your learning. If you havent, then I highly recommend starting with Lets Go first especially if youre a newcomer to Go.

You can read this as a standalone book, but please be aware that it is somewhat advanced it doesnt explain the fundamentals in detail, and some topics (like testing) dont feature at all because they were covered heavily in the previous book. But if youre comfortable using Go and already have a decent amount of experience behind you, then this book may also be a good fit for you. Feel free to jump straight in.

Go 1.16

The information in this book is correct for the latest major release of Go (version 1.16), and you should install this if youd like to code-along with the application build.

If youve already got Go installed, you can check the version number from your terminal by using the go version command. The output should look similar to this:

$ go versiongo version go1.16 linux/amd64

If you need to upgrade your version of Go, then please go ahead and do that now. The instructions for your operating system can be found here.

Other software

There are a few other bits of software that you should make sure are available on your computer if you want to follow along fully. They are:

  • The curl tool for working with HTTP requests and responses from your terminal. On MacOS and Linux machines it should be pre-installed or available in your software repositories. Otherwise, you can download the latest version from here.

  • The hey tool for carrying out some basic load tests. If you have Go 1.16 on your computer, you can install hey with the go install command:

    $ go install github.com/rakyll/hey@latest
  • The git version control system. Installation instructions for all operating systems can be found here.

  • A web browser with good developer tools. Ill be using Firefox in this book, but Chromium, Chrome or Microsoft Edge will work too.

  • Your favorite text editor

Chapter 2.
Getting Started

In this first section of the book, were going to set up a project directory and lay the groundwork for building our Greenlight API. We will:

  • Create a skeleton directory structure for the project and explain at a high-level how our Go code and other assets will be organized.

  • Establish a HTTP server to listen for incoming HTTP requests.

  • Introduce a sensible pattern for managing configuration settings (via command-line flags) and using

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Lets Go Further»

Look at similar books to Lets Go Further. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Lets Go Further»

Discussion, reviews of the book Lets Go Further and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.