Skip to content

Commit ae4b3ce

Browse files
committed
clean up #2160
1 parent 01418c5 commit ae4b3ce

File tree

1 file changed

+27
-31
lines changed

1 file changed

+27
-31
lines changed

Diff for: docs/Examples/IIS.md

+27-31
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
2-
![Yeoman / Windows/ MEAN](http://joshlavely.com/images/yo_windows_mean.gif)
3-
# Angular-Generator-Fullstack on Windows
1+
# Angular Full-Stack Generator deployment on Windows
42
This is a walk through to get generator-angular-fullstack up and running on a windows machine.
53
This walk through has been tested on:
64
- Windows Vista
@@ -12,16 +10,17 @@ This walk through has been tested on:
1210
## Prerequisites
1311

1412
**Install Python**
15-
- Download 2.7 from
16-
- Install to C:\Python27 (*The Default Path*) **
17-
- After Python is installed add the %Path% (*C:\Python27\python.exe*) to your Windows Path Env variable.
18-
- Start > Type ```Environment Variables``` > click "Edit the System Environment Variables" > Envrionment Variables >
19-
Click "Path" > "Edit"
13+
- Download Python 2.7 from [python.org/downloads](https://www.python.org/downloads/)
14+
- Install to `C:\Python27` (*The Default Path*) **
15+
- After Python is installed add the path (*`C:\Python27\`*) to your Windows `PATH` environment variable.
16+
- Start > Type `Environment Variables` > click "Edit the System Environment Variables" > Envrionment Variables > Click "Path" > "Edit"
2017
- Add C:\Python27\python.exe to the very end. (*Click into box and press 'End'*)
21-
18+
2219
**Install NodeJS on Windows**
23-
- Download the latest stable release of NodeJS from https://nodejs.org and install using all the default options.
24-
20+
- Download & Install [nvm-windows](https://github.com/coreybutler/nvm-windows/releases).
21+
- 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+
2524
**Install IISNode**
2625
- Install Latest Stable release of [IISNode](https://github.com/tjanczuk/iisnode)
2726

@@ -31,29 +30,28 @@ This walk through has been tested on:
3130
**Install MongoDB on Windows**
3231
- 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.
3332
- 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
38-
``"C:\Program Files\MongoDB\Server\3.2\bin\mongod"``
33+
- Create an empty folder at ex. `C:\data\db`.
34+
- 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`
3936

4037
## Getting your project started
4138

4239
**Install the generator**
4340
- 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`
4644

4745
## Move App into production
4846
The below steps assume you have purchased a domain and have pointed your DNS to your public IP
4947

5048
**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
5452
- Copy down the web.config from below and place this inside your 'client' folder (*save it as 'web.config'*)
55-
56-
```
53+
54+
```
5755
<configuration>
5856
<system.webServer>
5957
@@ -118,19 +116,17 @@ The below steps assume you have purchased a domain and have pointed your DNS to
118116
119117
</system.webServer>
120118
</configuration>
121-
```
122-
123-
124-
**Setup IIS**
119+
```
120+
121+
**Setup IIS**
125122
- Open IIS Manager (*Start > Type 'IIS Manager'*)
126123
- Create your new site (*Expand Server > Right click sites > 'Add Websites'*)
127124
- 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\`*)
129126
- Enter your hostname (*Your a-record*)
130127
- Leave all other defaults and click 'Ok'
131128

132129
**Start your server**
133-
- Run ```gulp serve:dist```
130+
- Run `gulp serve:dist`
131+
134132
# Congratulations, you did it! Now go code something awesome!
135-
136-

0 commit comments

Comments
 (0)