Skip to content
Eric M. Dantas edited this page May 9, 2017 · 11 revisions

Client

Component:

$ yo ng-fullstack:component user --feature person

This will create:

client/dev/person/components/user.ts
client/dev/person/templates/user.html 
client/dev/person/styles/user.css 
tests/client/person/components/user_test.ts 

Model:

$ yo ng-fullstack:model doctor --feature medic

This will create:

client/dev/medic/models/doctor.js 
tests/client/medic/models/doctor_test.js 

View:

$ yo ng-fullstack:view dashboard --feature medic

This will create:

client/dev/medic/templates/dashboard.html

Controller:

$ yo ng-fullstack:controller doctor --feature medic

This will create:

client/dev/medic/controllers/doctor.js 
tests/client/medic/controllers/doctor_test.js 

Directive

$ 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 

Service

$ 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 

Filter

$ yo ng-fullstack:filter myFilter --feature common

This will create:

client/dev/common/filters/myFilter.js 
tests/client/common/filters/myFilter_test.js 

Factory

$ yo ng-fullstack:factory student --feature school

This will create:

client/dev/school/factory/student.js 
tests/client/school/factory/student_test.js 

Resource

$ yo ng-fullstack:resource clazz --feature clazz

This will create:

client/dev/clazz/resource/clazz.js 

Decorator

$ yo ng-fullstack:decorator q-extender --feature next-q

This will create:

client/dev/next-q/decorator/q-extender.js 

Module:

$ yo ng-fullstack:module user --feature family

This will create:

client/dev/family/factory/user.ts
client/dev/family/services/user.ts
client/dev/family/models/user.ts
client/dev/family/components/user.ts
client/dev/family/directives/user.ts
client/dev/family/styles/user.css
client/dev/family/templates/user.html

tests/client/family/factory/user_test.ts
tests/client/family/components/user_test.ts
tests/client/family/services/user_test.ts
tests/client/family/models/user_test.ts
tests/client/family/directives/user_test.ts

server

endpoint:


$ 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 

Tests

Client:

$ npm run test-client

Server (Node):

$ npm run test-server

Server (Go):

$ go test ./... -cover -bench . -benchmem

e2e:

$ webdriver-manager start
$ protractor

Initialize (fullstack)

$ npm run dev

Initialize (client only)

$ npm start

Initialize (server only)

$ npm start

Distribution build

$ npm run build-dist