-
Notifications
You must be signed in to change notification settings - Fork 101
Home
Eric Mendes Dantas edited this page Jun 16, 2015
·
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
This will create:
client/dev/components/user/user.js
client/dev/components/user/user.html
and
tests/client/component/user/user_test.js
$ yo ng-fullstack:controller Doctor --feature doctor
This will create:
client/dev/js/doctor/controller/doctor.controller.js
and
tests/client/doctor/controller/doctor.controller_test.js
$ yo ng-fullstack:directive i-toggle-stuff --feature common
This will create:
client/dev/js/common/directive/i-toggle-stuff.directive.js
and
tests/client/common/directive/i-toggle-stuff.directive_test.js
$ yo ng-fullstack:service HttpParser --feature lib
This will create:
client/dev/js/lib/service/HttpParser.service.js
and
tests/client/lib/service/HttpParser.service_test.js
$ yo ng-fullstack:filter myFilter --feature common
This will create:
client/dev/js/common/filter/myFilter.filter.js
and
tests/client/common/filter/myFilter.filter_test.js
$ yo ng-fullstack:factory Student --feature student
This will create:
client/dev/js/student/factory/Student.factory.js
and
tests/client/student/factory/Studet.factory_test.js
$ yo ng-fullstack:resource Clazz --feature clazz
This will create:
client/dev/js/clazz/resource/Clazz.resource.js
$ yo ng-fullstack:decorator qExtender --feature next-q
This will create:
client/dev/js/next-q/decorator/qExtender.decorator.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
and
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
│ ├── js
│ ├── components
│ ├── css
│ ├── partials
│ └── imgs
│
├── server
│ ├── api
│ │ ├── todo
│ │ │ ├── dao
│ │ │ ├── model
│ │ │ ├── controller
│ │ │ └── routes
│ │ │
│ ├── auth
│ │ ├── local
│ │ │
│ ├── commons
│ │ ├── socket
│ │ └── static
│ │
│ ├── config
│ ├── constants
│ └── routes
│
└── tests
├── client
│ ├── _helpers
│ ├── components
│ │ └── todo
│ │
│ └── todo
│ ├── dao
│ ├── model
│ └── routes
│
├── e2e
│ └── _helpers
│
└── server
├── _helpers
└── todo
├── dao
├── model
├── controller
└── routes