Foodle - The USDA Nutrient Database Search Engine
This is a sample app for a tech talk given at the AngularJS NYC Meetup in April 2013.
The repository is tagged with with varous preso/step-N
tags, which match up with the various step slides in the presentation. On that page, I've also included a pre-built server binary, so that you can just clone the repository and run the server without having to install anything.
Running the Server
The backend server is written in Go, which the only requirement for building the app.
- Download and install the Go runtime.
- Set up your GOPATH, e.g.:
export GOPATH=$HOME/go/
mkdir $GOPATH
- Have Go clone the repository for you:
go get -d github.com/rsesek/usda-ndb
- Go to the work directory and build the server:
cd $GOPATH/src/github.com/rsesek/usda-ndb
go build
- Run the server:
./usda-ndb
The server by default runs on port 8077, but it can be changed with the -port=8077
flag to the binary.