todo

module
v0.0.0-...-1b98bfd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2017 License: Apache-2.0

README

ToDo

This application has been written for a talk on Go, TDD, and REST APIs.

The slides for the talk can be seen here.

TODO provides a simple task management application.

The purpose of this project is to show how some general techniques can be applied to Go code.

Test Driven Development

The task package has been implemented using TDD techniques, starting writing tests, seeing them failing, writing the code to make the test pass.

Once all tests pass the code is refactored.

Implementation of a REST API in Go

The server package handles requests on "/task/" providing a REST API.

This REST API is then exposed as a stand-alone http server and a Google App Engine app. Please take into account that the TaskManager is only in-memory at this point, which means that tasks are lost if the application is restarted.

Consuming a REST API with AngularJS

With a minimum of HTML, CSS, and AngularJS we create a UI for the REST API. The code is in the todo/static directory.

Directories

Path Synopsis
This package implements a simple HTTP server providing a REST API to a task handler.
This package implements a simple HTTP server providing a REST API to a task handler.
The package provides a TaskManager implemented using TDD techniques.
The package provides a TaskManager implemented using TDD techniques.
A stand-alone HTTP server providing a web UI for task management.
A stand-alone HTTP server providing a web UI for task management.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL