• Stars
    star
    3,127
  • Rank 14,259 (Top 0.3 %)
  • Language
    Go
  • Created over 8 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Learn how to write webapps without a framework in Go.

About the book

Join the chat at https://gitter.im/thewhitetulip/web-dev-golang-anti-textbook

Source Read online Watch Download Code Pay?
Github Gitbooks YouTube series leanpub Tasks This book is free, but if you want to pay, you can buy it on leanpub.

What is this?

This is an easy to understand example based tutorial aimed at those who know a little of Go and nothing of webdev and want to learn how to write a webserver in Go. You will create a to do list application as you advance the chapters.

Please use the front end folder in the code folder to get the index.html of the Tasks project and work on it while reading this tutorial.

Supporting Docs

We have a YouTube series and a fully functioning web application as supporting documents. Tasks is the application which you'll as you read into the book

If you prefer learning by watching, YouTube series. The code corresponding to the YouTube series is available here. The code is published as branches, each video has a particular branch.

Multiversity

This guide is a part of the Multiversity initiative. The aim is to have high quality open source tutorials along with screencasts.

Contributing

We welcome all Pull Requests, please raise an issue before starting your work!

Backstory

I got feedback from a reddit user that maybe it is too early for me to start writing this book. Decades ago, a young student from the University of Helsinki had an endless debate with Andrew Tannenbaum on comp.minix. It was about monolithic kernels. Had the student listened to Andrew Tannenbaum, the world probably would not have had Linux. This is the whole point of open source projects, a little initiative from everyone goes a long way. I would like to thank everyone who gave their suggestions on reddit and HN.

Philosophy

  • Through this book we want to teach how to develop web applications in Go. We expect the reader to know the basics of Go but we assume the reader knows nothing about how to write web applications.
  • The book shall comprise of chapters, if the topic is huge and doesn't fit into one chapter, then we split into multiple chapters, if possible.
  • Each chapter should be split into logical parts or sections with a meaningful title which'll teach the reader something.
  • Every concept should be accompanied by the Go code (if there is any), for sneak peek type sections write the Go pseudo code, writing just the necessary parts of the code and keeping everything else.
  • The code shouldn't be more than 80 characters wide because in the PDF versions of the book the code is invisible.
  • Brevity is the soul of wit, please keep the description as small as possible. This doesn't mean we skip it, but try to explain it in as simple words as possible. In such cases do explain the concept.
  • In the todo list manager which we are creating, we'll strive to implement as much functionality as possible to give a taste of practical Go programming to the reader. In cases where we re-implement stdlib stuff, we should mention it clearly.
  • The main title should have one #, sections should have 2 #'s sub section should have 4 and notes should have 6 #'s (note should have a title too).
  • Multi-line code should use syntax fencing, single line of code can be indented using tabs or by backticks.

Written with love in India with help from the Internet.

License

Book License: CC BY-SA 3.0 License

Note

  1. The Go Programming Basics section has been adapted from build-web-application-with-golang by astaxie Links were updated to refer the correct aspects of the current book, titles were updated to fit into this book. Modifications to the content was done to suit to the style of the book.
  2. The gopher in the cover page is taken from https://golang.org/doc/gopher/appenginegophercolor.jpg without modifications.
  3. The chapter on database is adapted from https://github.com/VividCortex/go-database-sql-tutorial/ with modifications.

Links

More Repositories

1

awk-anti-textbook

learn awk by example
721
star
2

Tasks

A simplistic todo list manager written in Go
Go
547
star
3

build-app-with-python-antitextbook

Aims to teach Python3 by example
Python
539
star
4

intro-to-vuejs

Introduction to VueJS the anti-textbook (work in progress)
136
star
5

multiversity

Meta project related to the YouTube channel https://www.youtube.com/channel/UCRS1AaHawQklALPHwfAlBCQ/
101
star
6

go-vue-events

Go with Vue2.0; fork of https://github.com/chenkie/vue-events-bulletin;
JavaScript
37
star
7

SamplePythonScripts

A collection of general purpose sample python scripts
Python
21
star
8

Tasks-vue

A fork of http://github.com/thewhitetulip/Tasks written in Vue; code for chp5 of http://github.com/thewhitetulip/intro-to-vuejs/ tutorial
JavaScript
21
star
9

pyfox

A small python script for easy access to firefox bookmarks and browsing history
Python
20
star
10

write-webapps-in-go-video

Code accompanying the Video series
JavaScript
17
star
11

wshare

wShare was built to make file sharing within intranet easy.
Go
13
star
12

omninotesweb

This is the website for OmniNotes
JavaScript
8
star
13

devtools

A curated list of developer tools
7
star
14

timer

Shows a notification every hour to take breaks
Go
6
star
15

f

A very simple and fast http server in Go
Go
6
star
16

picsort

a simple webapp in golang to put images into folders of individuals, we have to manually tag them first.
Go
5
star
17

intro-to-vuejs-code

Code accompanying the book https://github.com/thewhitetulip/intro-to-vuejs
JavaScript
4
star
18

code-build-app-with-python-antitextbook

Code accompanying the tutorial https://github.com/thewhitetulip/build-app-with-python-antitextbook
Python
4
star
19

hashtag-notes

Android app based on material design that can be used to take notes using hashtags
Java
3
star
20

managefiles

A small python script to manage files in your downloads folder
Python
1
star
21

unixcommands

Reimplementing basic unix commands in Go
Go
1
star
22

go-lang-from-zero-to-hero

1
star