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
- Run `nvm install 6.4.0` for the version of node that you want
22
+
- Run `nvm use 6.4.0` to use that version
23
+
25
24
**Install IISNode**
26
25
- Install Latest Stable release of [IISNode](https://github.com/tjanczuk/iisnode)
27
26
@@ -31,29 +30,28 @@ This walk through has been tested on:
31
30
**Install MongoDB on Windows**
32
31
- Download the current stable release of MongoDB from https://www.mongodb.org/downloads and install using the "Complete" setup type and all the default options.
33
32
- Create the MongoDB data directory
34
-
- Create an empty folder at "C:\data\db".
35
-
- MongoDB requires a directory for storing all of it's data, the default directory is "C:\data\db", you can use a different directory if you prefer by specifying the "--dbpath" parameter when starting the MongoDB server (below).
36
-
- Start MongoDB Server on Windows
37
-
- Start the MongoDB server by running "mongod.exe" from the command line, "mongod.exe" is located in "C:\Program Files\MongoDB\Server\[MONGODB VERSION]\bin", for example for version 3.2 the following command will start MongoDB
- MongoDB requires a directory for storing all of it's data. The default directory is `C:\data\db`. You can use a different directory if you prefer by specifying the "--dbpath" parameter when starting the MongoDB server (below).
35
+
- Start the MongoDB server daemon by running `mongod.exe` from the command line. `mongod.exe` is likely located in `C:\Program Files\MongoDB\Server\[MONGODB VERSION]\bin`; for example for version 3.2 the following command will start MongoDB: `C:\Program Files\MongoDB\Server\3.2\bin\mongod`
39
36
40
37
## Getting your project started
41
38
42
39
**Install the generator**
43
40
- Create an empty folder for your project
44
-
- Open CMD as administrator and change directories to your app's directory ```cd c:\example```
45
-
- Run ```npm install -g yo gulp-cli generator-angular-fullstack```
41
+
- Open a terminal and change directories to your app's directory `cd c:\example`
42
+
- Run `npm install -g yo gulp-cli generator-angular-fullstack`
43
+
- Run `yo angular-fullstack`
46
44
47
45
## Move App into production
48
46
The below steps assume you have purchased a domain and have pointed your DNS to your public IP
49
47
50
48
**Build and prep**
51
-
- Run the build process ```gulp serve:dist```
52
-
- Move your *dist* folder to your desired directory (*This is where IIS will be pointed at*)
53
-
- Copy the contents of the 'server' folder **into** your 'client' folder
49
+
- Run the build process `gulp serve:dist`
50
+
- Move your `dist/` folder to your desired directory (*This is where IIS will be pointed at*)
51
+
- Copy the contents of the `server/` folder **into** your `client/` folder
54
52
- Copy down the web.config from below and place this inside your 'client' folder (*save it as 'web.config'*)
55
-
56
-
```
53
+
54
+
```
57
55
<configuration>
58
56
<system.webServer>
59
57
@@ -118,19 +116,17 @@ The below steps assume you have purchased a domain and have pointed your DNS to
118
116
119
117
</system.webServer>
120
118
</configuration>
121
-
```
122
-
123
-
124
-
**Setup IIS**
119
+
```
120
+
121
+
**Setup IIS**
125
122
- Open IIS Manager (*Start > Type 'IIS Manager'*)
126
123
- Create your new site (*Expand Server > Right click sites > 'Add Websites'*)
127
124
- Enter your site's name
128
-
- Enter the directory path to your 'client' folder (*C:\example\dist\client\*)
125
+
- Enter the directory path to your `client/` folder (*`C:\example\dist\client\`*)
129
126
- Enter your hostname (*Your a-record*)
130
127
- Leave all other defaults and click 'Ok'
131
128
132
129
**Start your server**
133
-
- Run ```gulp serve:dist```
130
+
- Run `gulp serve:dist`
131
+
134
132
# Congratulations, you did it! Now go code something awesome!
0 commit comments