You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -43,13 +43,13 @@ Run `grunt` for building, `grunt serve` for preview, and `grunt serve:dist` for
43
43
**Server**
44
44
45
45
* Database: `None`, `MongoDB`
46
-
* Authentication boilerplate: `Yes`, `No`
47
-
* oAuth integrations: `Facebook``Twitter``Google`
46
+
* Authentication boilerplate: `Yes`, `No`
47
+
* oAuth integrations: `Facebook``Twitter``Google`
48
48
* Socket.io integration: `Yes`, `No`
49
49
50
50
## Injection
51
51
52
-
A grunt task looks for new files in your `client/app` and `client/components` folder and automatically injects them in the appropriate places based on an injection block.
52
+
A grunt task looks for new files in your `client/app` and `client/components` folder and automatically injects them in the appropriate places based on an injection block.
53
53
54
54
*`less` files into `client/app.less`
55
55
*`scss` files into `client/app.scss`
@@ -62,7 +62,7 @@ A grunt task looks for new files in your `client/app` and `client/components` fo
Sets up a new AngularJS + Express app, generating all the boilerplate you need to get started.
83
+
Sets up a new AngularJS + Express app, generating all the boilerplate you need to get started.
84
84
85
85
Example:
86
86
```bash
@@ -98,7 +98,7 @@ yo angular-fullstack:endpoint message
98
98
```
99
99
100
100
Produces:
101
-
101
+
102
102
server/api/message/index.js
103
103
server/api/message/message.spec.js
104
104
server/api/message/message.controller.js
@@ -116,13 +116,13 @@ yo angular-fullstack:route myroute
116
116
```
117
117
118
118
Produces:
119
-
119
+
120
120
client/app/myroute/myroute.js
121
121
client/app/myroute/myroute.controller.js
122
122
client/app/myroute/myroute.controller.spec.js
123
123
client/app/myroute/myroute.html
124
124
client/app/myroute/myroute.scss
125
-
125
+
126
126
127
127
### Controller
128
128
Generates a controller.
@@ -133,7 +133,7 @@ yo angular-fullstack:controller user
133
133
[?] Where would you like to create this controller? client/app/
134
134
```
135
135
136
-
Produces:
136
+
Produces:
137
137
138
138
client/app/user/user.controller.js
139
139
client/app/user/user.controller.spec.js
@@ -178,7 +178,7 @@ yo angular-fullstack:filter myFilter
178
178
[?] Where would you like to create this filter? client/app/
179
179
```
180
180
181
-
Produces:
181
+
Produces:
182
182
183
183
client/app/myFilter/myFilter.filter.js
184
184
client/app/myFilter/myFilter.filter.spec.js
@@ -209,10 +209,10 @@ yo angular-fullstack:decorator serviceName
209
209
[?] Where would you like to create this decorator? client/app/
210
210
```
211
211
212
-
Produces
212
+
Produces
213
213
214
214
client/app/serviceName/serviceName.decorator.js
215
-
215
+
216
216
###Openshift
217
217
218
218
Deploying to OpenShift can be done in just a few steps:
@@ -223,29 +223,37 @@ A live application URL will be available in the output.
223
223
224
224
> **Enabling web sockets**
225
225
>
226
-
> If you're using socket.io, you will need to update the client to connect to the correct port for sockets to work.
227
-
>
226
+
> If you're using socket.io, you will need to update the client to connect to the correct port for sockets to work.
227
+
>
228
228
> In `/client/app/components/socket/socket.service` update the socket to connect to port 8000. (with `my-openshift-app` being the deployed name of your app):
229
229
>
230
230
> var ioSocket = io.connect('my-openshift-app.com:8000');
231
-
>
231
+
>
232
232
> **oAuth**
233
233
>
234
234
> If you're using any oAuth strategies, you must set environment variables for your selected oAuth. For example, if we're using Facebook oAuth we would do this :
235
-
>
235
+
>
236
236
> rhc set-env FACEBOOK_ID=id -a my-openshift-app
237
237
> rhc set-env FACEBOOK_SECRET=secret -a my-openshift-app
238
-
>
239
-
> You will also need to update the callback urls for your oAuth strategies in your `server/config/environment/index.js`
240
238
>
241
-
> After you've set the required environment variables, restart the server:
242
-
>
239
+
> You will also need to set `DOMAIN` environment variable:
> After you've set the required environment variables, restart the server:
248
+
>
243
249
> rhc app-restart -a my-openshift-app
244
-
250
+
251
+
To make your deployment process easier consider using [grunt-build-control](https://github.com/robwierzbowski/grunt-build-control).
252
+
245
253
**Pushing Updates**
246
254
247
255
grunt
248
-
256
+
249
257
Commit and push the resulting build, located in your dist folder:
250
258
251
259
cd dist && git add -A && git commit -m "describe your changes here"
@@ -255,36 +263,38 @@ Commit and push the resulting build, located in your dist folder:
255
263
256
264
Deploying to heroku only takes a few steps.
257
265
258
-
yo angular-fullstack:heroku
266
+
yo angular-fullstack:heroku
259
267
260
268
To work with your new heroku app using the command line, you will need to run any `heroku` commands from the `dist` folder.
261
269
270
+
262
271
If you're using mongoDB you will need to add a database to your app:
263
272
264
273
heroku addons:add mongohq
265
274
266
-
Your app should now be live. To view it run `heroku open`
275
+
Your app should now be live. To view it run `heroku open`.
267
276
268
-
> **Enabling web sockets**
269
277
>
270
-
> If you're using socket.io you will need to enable websockets on your app:
271
-
>
272
-
> heroku labs:enable websockets
273
-
>
274
-
> **oAuth**
278
+
> If you're using any oAuth strategies, you must set environment variables for your selected oAuth. For example, if we're using **Facebook** oAuth we would do this :
275
279
>
276
-
> If you're using any oAuth strategies, you must set environment variables for your selected oAuth. For example, if we're using Facebook oAuth we would do this :
277
-
>
278
280
> heroku config:set FACEBOOK_ID=id
279
281
> heroku config:set FACEBOOK_SECRET=secret
280
282
>
281
-
> You will also need to update the callback urls for your oAuth strategies in your `server/config/environment/index.js`
283
+
> You will also need to set `DOMAIN` environment variable:
0 commit comments