generator-go-negroni-pat-angular
v0.1.7
Published
Create microservice base on AngularJS + Go + Negroni + Pat (and Viper for YAML configuration) with Yeoman
Downloads
10
Maintainers
Readme
generator-go-negroni-pat-angular
Create microservice base on AngularJS + Go + Negroni + Pat
Installation
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 github.com/tools/godep
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.
License
MIT © idochetrit