-
Notifications
You must be signed in to change notification settings - Fork 101
Home
Eric M. Dantas edited this page Feb 27, 2016
·
16 revisions
After installing it, just run:
$ yo ng-fullstack
In case you're using node: read this.
In case you're using Go: read that.
Check node dependencies installations.
Check Go dependencies installations.
Nope. But it'd be good if you had accounts on both Travis CI and Coveralls.io - so the badges of build and coveralls show up in your README (don't forget to sync your github repo).
Either start the server using node.
Or start it using Go.
$ yo ng-fullstack
This will create the structure above.
$ yo ng-fullstack:component user --feature person
This will create:
client/dev/person/components/user.ts
client/dev/person/components/user.html
tests/client/person/components/user_test.ts
$ yo ng-fullstack:controller doctor --feature medic
This will create:
client/dev/medic/controllers/doctor.js
tests/client/medic/controllers/doctor_test.js
$ yo ng-fullstack:directive i-toggle-stuff --feature common
This will create:
client/dev/common/directives/i-toggle-stuff.js
tests/client/common/directives/i-toggle-stuff_test.js
$ yo ng-fullstack:service http-parser --feature lib
This will create:
client/dev/lib/services/http-parser.js
tests/client/lib/services/http-parser_test.js
$ yo ng-fullstack:filter myFilter --feature common
This will create:
client/dev/common/filters/myFilter.js
tests/client/common/filters/myFilter_test.js
$ yo ng-fullstack:factory student --feature school
This will create:
client/dev/school/factory/student.js
tests/client/school/factory/student_test.js
$ yo ng-fullstack:resource clazz --feature clazz
This will create:
client/dev/clazz/resource/clazz.js
$ yo ng-fullstack:decorator q-extender --feature next-q
This will create:
client/dev/next-q/decorator/q-extender.js
$ yo ng-fullstack:endpoint skate --feature skateboard
This will create (node):
server/api/skateboard/controller/skate-controller.js
server/api/skateboard/route/skate-route.js
server/api/skateboard/dao/skate-dao.js
server/api/skateboard/model/skate-model.js
tests/server/skateboard/dao/skate-dao_test.js
And for Go:
server/api/skateboard/controller/skatecontroller.go
server/api/skateboard/controller/skatecontroller_test.go
server/api/skateboard/route/skateroute.go
server/api/skateboard/route/skateroute_test.go
server/api/skateboard/dao/skatedao.go
server/api/skateboard/dao/skatedao_test.go
server/api/skateboard/model/skatemodel.go
server/api/skateboard/model/skatemodel_test.go
Client:
$ gulp test-client
Server (node):
$ npm run test-server
Server (Go):
$ go test ./... -cover -bench .
e2e:
$ webdriver-manager start
$ protractor
$ gulp
$ gulp build
After running yo ng-fullstack
, you'll get:
├── client
│ └── dev
│ └── todo
│ ├── components
│ ├── services
│ ├── templates
│ └── styles
│
├── server
│ ├── api
│ │ ├── todo
│ │ │ ├── dao
│ │ │ ├── models
│ │ │ ├── controllers
│ │ │ └── routes
│ │ │
│ ├── auth
│ │ ├── local
│ │ │
│ ├── commons
│ │ └── static
│ │
│ │
│ ├── config
│ ├── constants
│ └── routes
│
└── tests
├── client
│ └── todo
│ ├── services
│ ├── models
│ └── services
│
├── e2e
│ └── _helpers
│
└── server
├── _helpers
└── todo
├── dao
├── models
├── controllers
└── routes