todoapp

package
v0.0.0-...-8e96db4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2015 License: Apache-2.0 Imports: 18 Imported by: 0

README

Golang Todo App

This app demonstrates how to use the mobilehtml5app framework to generate a rich HTML5 based user interface on mobile for a Go Language webapp backend. It also demonstrates how to use the private app storage space on Android to persist data and how to link up all the build all components using Gradle.

Web Frameworks Used

The app uses React and Bootstrap to build the user interface and interacts using AJAX calls with the Go Language backend. It uses BoltDB to persist the data in the app's private persistant data folder which is obtained using Activity.getFilesDir() and provided to the Start() function of the Go app.

Requirements to Build

  • Node.js and Babel installed to compile JSX to Javascript
  • Go-Bindata installed to compile assets into bindata.go

How to Build

  • In the Android Studio's opening dialog, select "Import Project"
  • Import the androidapp folder

Photo Credits

Markus Spiske, www.markusspiske.com

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App implements a web server backend for an android app

func NewApp

func NewApp(pdir string) (*App, error)

NewApp returns an App

func (*App) Start

func (app *App) Start() (string, error)

Start is called by the native portion of the webapp to start the web server. It returns the server root URL (without the trailing slash) and any errors.

func (*App) Stop

func (app *App) Stop()

Stop is called by the native portion of the webapp to stop the web server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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