Create microservice base on AngularJS + Go + Negroni + Pat (and Viper for YAML configuration) with Yeoman

Usage no npm install needed!

<script type="module">
  import generatorGoNegroniPatAngular from '';


generator-go-negroni-pat-angular NPM version Build Status Dependency Status

Create microservice base on AngularJS + Go + Negroni + Pat


First, install Yeoman and generator-go-negroni-pat-angular using npm (we assume you have pre-installed node.js).

  npm install -g yo
  npm install -g generator-go-negroni-pat-angular

Creating a Go (Pat + Negroni) service

In a new directory, generate the service:

  yo go-negroni-pat-angular

Please run this next commands in your GOPATH folder.

Make sure you install Godep first, you can install by running:

  go get

Get the dependencies:

  godep restore
  godep get

Run the server:

  go run server.go

Your service will run at http://localhost:5050.

A client-side AngularJS application will now be available by running

    grunt server

The Grunt server will run at http://localhost:5051. It will proxy REST requests to Go server running at http://localhost:5050.

The Grunt server supports hot reloading of client-side HTML/CSS/Javascript file changes.

What's Next

Working on Angular2 Version...

Getting To Know Yeoman

Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.


MIT © idochetrit