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
Copy file name to clipboardExpand all lines: docs/01_Getting_Started/01_Prerequisites.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ your computer's startup. Example:
23
23
24
24
### node-gyp
25
25
26
-
`node-gyp` is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. You'll need it for things like brotli compression.
26
+
`node-gyp` is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. You'll need it for things like `uws`.
27
27
28
28
Read through the [Installation section of the `node-gyp` readme](https://github.com/nodejs/node-gyp#installation). Basically you'll need [Python 2.7](https://www.python.org/downloads/), `make`, and a C/C++ compiler (like GCC on unix, Xcode on OS X, or Visual Studio tools on Windows). To tell npm to use Python 2.7 (if you also have a different version installed), run `npm config set python /path/to/executable/python2.7`. Here's a snapshot of the instructions from their readme:
Copy file name to clipboardExpand all lines: docs/02_Developing/00_Starting_Up.md
+19-6
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,13 @@
3
3
Now that you've gone through everything in the Getting Started section, lets get our app up and running. We do this by running the following:
4
4
5
5
```bash
6
-
$ gulp serve
6
+
$ npm run start:server
7
+
```
8
+
```bash
9
+
$ npm run start:client
7
10
```
8
11
12
+
<!--
9
13
We should see something like this spit out after it:
10
14
11
15
```bash
@@ -76,6 +80,7 @@ Child html-webpack-plugin for "..\client\index.html":
76
80
../client/index.html 2.69 kB 0
77
81
webpack: bundle is now VALID.
78
82
```
83
+
-->
79
84
80
85
And then our default browser should open up to the app:
81
86
@@ -87,7 +92,10 @@ Fantastic! We're now up and running with our Full-Stack Angular web application!
87
92
88
93
### Homepage
89
94
90
-
Assuming you scaffolded with a back-end database, you should see some 'features'. If you scaffolded with socket.io, you should see 'x' buttons next to each, and an input box. Try opening two browser windows to the same page side-by-side, and hitting the 'x' on one of the features. You should see the feature get removed on both web pages. Neat! This is because these database object changes are communicated to clients using socket.io.
95
+
Assuming you scaffolded with a back-end database, you should see some 'features'. If you scaffolded with socket.io,
96
+
you should see 'x' buttons next to each, and an input box. Try opening two browser windows to the same page
97
+
side-by-side, and hitting the 'x' on one of the features. You should see the feature get removed on both web pages.
98
+
Neat! This is because these database object changes are communicated to clients using socket.io.
@@ -97,9 +105,11 @@ Neat. Let's see what else we can do.
97
105
98
106
### Auth
99
107
100
-
Assuming you scaffolded with auth support, you should see a 'Sign Up' and a 'Log In' button at the top-right of your page. Let's go to the Log In page.
108
+
Assuming you scaffolded with auth support, you should see a 'Sign Up' and a 'Log In' button at the top-right of your
109
+
page. Let's go to the Log In page.
101
110
102
-
You should see inputs for an email address and a password. When running your project in a devlopment environment, you'll get two user accounts automatically generated:
111
+
You should see inputs for an email address and a password. When running your project in a development environment, you'll
@@ -110,9 +120,12 @@ You should see inputs for an email address and a password. When running your pro
110
120
* password: admin
111
121
* role: admin
112
122
113
-
Go ahead and log in with the admin account, so we can see the extra admin bits too. You should then get sent back to the home page, but should notice that the navbar looks a bit different:
123
+
Go ahead and log in with the admin account, so we can see the extra admin bits too. You should then get sent back to the
124
+
home page, but should notice that the navbar looks a bit different:
114
125
115
126
<imgsrc="../images/logged-in.jpg"alt="Logged in as admin screenshot">
116
127
117
128
118
-
First, at the top right, we see a greeting for our username, a cog icon (for user settings), and a logout button. Then, since we're an admin, we see a new 'Admin' state on the navbar. The admin section lists users and allows you to delete them. The user settings page allows you to change your password.
129
+
First, at the top right, we see a greeting for our username, a cog icon (for user settings), and a logout button. Then,
130
+
since we're an admin, we see a new 'Admin' state on the navbar. The admin section lists users and allows you to delete
131
+
them. The user settings page allows you to change your password.
Copy file name to clipboardExpand all lines: docs/02_Developing/01_Adding_a_Route.md
+12-8
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
> ATTENTION: THIS PAGE IS OUT-OF-DATE
2
+
1
3
# Adding a Route
2
4
3
5
Alright, now let's add another route to our app. We'll call it 'foo'. We can easily do this with the `yo angular-fullstack:route` subgenerator command:
@@ -10,11 +12,10 @@ $ yo angular-fullstack:route foo
10
12
? Where would you like to create this route? client/app/
11
13
? What will the url of your route be? (/foo)
12
14
? What will the url of your route be? /foo
13
-
identical client\app\foo\foo.routes.js
14
-
identical client\app\foo\foo.component.js
15
-
identical client\app\foo\foo.component.spec.js
16
-
identical client\app\foo\foo.html
17
-
identical client\app\foo\foo.scss
15
+
create client\app\foo\foo.component.js
16
+
create client\app\foo\foo.component.spec.js
17
+
create client\app\foo\foo.html
18
+
create client\app\foo\foo.scss
18
19
19
20
In the parent of this component, you should now import this component and add it as a dependency:
20
21
@@ -23,11 +24,14 @@ In the parent of this component, you should now import this component and add it
We give it our route name ('foo'), and a few more details: the name of the Angular module to create ('myApp.foo'), which folder to put the route under ('client/app/foo/'), and the URL of the route ('localhost:3000/foo').
27
+
We give it our route name ('foo'), and a few more details: the name of the Angular module to create ('myApp.foo'), which
28
+
folder to put the route under ('client/app/foo/'), and the URL of the route ('localhost:3000/foo').
27
29
28
-
This will create an Angular 1.5 component with an Angular module (`foo.component.js`), a template file (`foo.html`), a CSS file (`foo.scss`), a unit test file (`foo.component.spec.js`), and a routing file (`foo.routes.js`).
30
+
This will create an Angular component with an Angular module (`foo.component.js`), a template file (`foo.html`), a CSS
31
+
file (`foo.scss`), a unit test file (`foo.component.spec.js`), and a routing file (`foo.routes.js`).
29
32
30
-
Since we're using Webpack, We'll need to import our component somewhere. Since this is a generic app route (and for simplicity), we'll import it in `app.js`, under our root Angular module, like so:
33
+
Since we're using Webpack, We'll need to import our component somewhere. Since this is a generic app route
34
+
(and for simplicity), we'll import it in `app.js`, under our root Angular module, like so:
0 commit comments