generator-p3sr

0.0.14 • Public • Published

generator-p3sr NPM version

Generate golang project files fit for the p3sr application

Installation

Make sure goimports is installed

go get golang.org/x/tools/cmd/goimports

Install 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-p3sr

Then generate your new project! To create p3sr-test, you would do

cd $GOPATH/src/bitbucket.org/c3sr
mkdir p3sr-test && cd p3sr-test
yo p3sr

Enter 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 build

Test the service!

The service comes with some template test code. To run it, invoke

go test

You should see this as the output:

PASS
ok  	bitbucket.org/c3sr/p3sr-test	0.002s

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

UIUC/NCSA � Abdul Dakkak

Readme

Keywords

Package Sidebar

Install

npm i generator-p3sr

Homepage

webgpu.com

Weekly Downloads

1

Version

0.0.14

License

NCSA

Last publish

Collaborators

  • abduld