generator-p3sr
v0.0.14
Published
Generate golang project files fit for the p3sr application
Downloads
46
Readme
generator-p3sr 
Generate golang project files fit for the p3sr application
Installation
Make sure goimports is installed
go get golang.org/x/tools/cmd/goimportsInstall node.js. You can follow instructions in the p3sr-srcmanager wiki.
Install Yeoman and generator-p3sr using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-p3srThen generate your new project! To create p3sr-test, you would do
cd $GOPATH/src/bitbucket.org/c3sr
mkdir p3sr-test && cd p3sr-test
yo p3srEnter test as the name when asked by Yeoman. In general, directories named p3sr-[x] should use [x] as their name when prompted by Yeoman.
Build the service!
go buildTest the service!
The service comes with some template test code. To run it, invoke
go testYou should see this as the output:
PASS
ok bitbucket.org/c3sr/p3sr-test 0.002sGetting 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
UIUC/NCSA � Abdul Dakkak
