generator-go-negroni-pat-angular

0.1.7 • Public • Published

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

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

Package Sidebar

Install

npm i generator-go-negroni-pat-angular

Weekly Downloads

0

Version

0.1.7

License

MIT

Last publish

Collaborators

  • idoch