Skip to content
Eric Mendes Dantas edited this page Jun 16, 2015 · 16 revisions

how do I run this?

After installing it, just run:


$ yo ng-fullstack

do I need anything?

In case you're using node: read this.

In case you're using Go: read that.

anything else?

Check node dependencies installations.

Check Go dependencies installations.

um.. anything else?

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).

alright, what now?

Either start the server using node.

Or start it using Go.

subgenerators

app:


$ yo ng-fullstack

This will create the structure above.

client

component:


$ 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 

controller:


$ 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 

directive


$ 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 

service


$ 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 

filter


$ 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 

factory


$ 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 

resource


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

This will create:

client/dev/js/clazz/resource/Clazz.resource.js 

decorator


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

This will create:

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

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 

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 

tests

Client:


$ gulp test_client

Server (node):


$ npm run test-server

Server (Go):


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

e2e:


$ webdriver-manager start
$ protractor

init


$ gulp

dist build


$ gulp build

structure

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

Clone this wiki locally