wa2583 react javascript · pdf filepart 7 - nginx __1. disable any service using port 80 to...

21
WA2583 React JavaScript Programming Classroom Setup Guide Web Age Solutions Inc. 1

Upload: lydien

Post on 01-Feb-2018

218 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

WA2583 React JavaScriptProgramming

Classroom Setup Guide

Web Age Solutions Inc.

1

Page 2: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

Table of ContentsPart 1 - Minimum Hardware Requirements ...................................................................3Part 2 - Minimum Software Requirements ....................................................................3Part 3 - Software Provided..............................................................................................4Part 4 - Important Ghosting or Imaging Information......................................................4Part 5 - Instructions.........................................................................................................4Part 6 - Privileges to Users..............................................................................................5Part 7 - Nginx..................................................................................................................8Part 8 - Installing Node.js 6.9.5.......................................................................................9Part 9 - Installing Visual Studio Code...........................................................................13Part 10 - MongoDB 3.0.6..............................................................................................20Part 11 - Summary.........................................................................................................20

2

Page 3: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

Part 1 - Minimum Hardware Requirements

● CPU to meet the minimum requirements of the operating system being used

● 3GB RAM minimum, 4 GB + recommended

● 10 GB in the hard disk

● Internet connectivity.

Part 2 - Minimum Software Requirements

● One of the following Windows versions:

○ Windows 7 (Professional, Enterprise, or Ultimate)

○ Windows Server 2008

○ Windows 8

○ Windows 10

● Internet Explorer 10 or higher

● One of the following web browsers:

○ Latest Firefox

○ Latest Chrome

● Zip extraction utility

● nginx 1.4.3*

● Notepad+ 6.5 *

● Visual Studio Code

● MongoDB 3.06 *

● NodeJS 6.9.5 *

* - indicates software provided as part of the courseware.

3

Page 4: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

Part 3 - Software Provided

List of ZIP files required for this course and used in next steps on this document:

WA2583_REL_1_1.ZIP

Send an email to [email protected] in order to obtain a copy of the software for this course if you haven't receive it yet.

All other software listed under Minimum Software Requirements is either commercially licensed software that you must provide or software that is freely available off the Internet.

Part 4 - Important Ghosting or Imaging Information

The software for this course can be ghosted.

Part 5 - Instructions

__1. Make sure the account that you are using to install the software has administrative privileges.

__2. Make sure you have internet connectivity.

__3. Extract the .ZIP file to C:\

__4. Review that the following folders were created:

• C:\LabFiles

• C:\Software\nginx-1.4.3

• C:\Software\node-v6.9.5

• C:\Software\mongodb\

• C:\Software\NotepadPlus\

4

Page 5: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

Part 6 - Privileges to Users

During the labs students will require privileges on several directories. They will need to be able to write, read, and modify files in these directories for the labs. Although the directions below are provided as an example, this may differ depending on Windows version. The important thing is to make sure students have full permissions on the folders below or they may not be able to accomplish some labs.

• C:\Software

• C:\LabFiles

• C:\Workspace

__1. Open Windows Explorer.

__2. Right click C:\Software and select Properties.

__3. Click the Security tab.

__4. Click Advanced.

__5. Click Change Permissions.

5

Page 6: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

__6. Select the Authenticated Users entry and click Edit…

Note. If you don't have a domain in your environment the select Users instead Authenticated Users.

6

Page 7: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

__7. Check the Allow checkbox to the right of Full Control and click OK.

__8. Select the checkbox for Replace all child permissions with inheritable permissions from this objects and then click OK.

__9. A Windows Security dialog will open. Click Yes.

__10. Wait until Windows finishes updating security.

__11. Back in the Advanced Security Settings dialog, click OK.

__12. Back in the Properties dialog, click OK.

__13. Do the same steps to the C:\LabFiles folder.

__14. Create a folder called C:\Workspace if its not already created.

__15. Do the same steps to the C:\Workspace folder.

7

Page 8: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

Part 7 - Nginx

__1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them.

__2. Switch to the user that the students will use during the course.

__3. Open the Command Prompt window and type in the following command at the prompt and press ENTER (execute the command):

cd C:\Software\nginx-1.4.3

This command will change directory to where the nginx web server resides (represented by the nginx.exe file).

__4. Start the nginx web server by executing the following command:

start nginx

This command will launch the nginx web server that starts listening on port 80. Allow access if the Firewall window appear.

__5. If you are prompted for the admin password, enter it to allow the software to run.

__6. Open Google Chrome browser and navigate to http://localhost

You should see the nginx welcome page.

__7. Close Chrome browser.

__8. In the Command Prompt window where you started the nginx web server, type in

8

Page 9: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

the following command at the prompt and press ENTER:

nginx -s stop

This command will stop the web server.

__9. Switch back to the admin user.

Nginx is installed.

Part 8 - Installing Node.js 6.9.5

__1. Open C:\Software\node-v6.9.5

__2. Double click node-v6.9.5-x86.msi to begin installation.

__3. Click Next.

__4. Check I accept the terms... and click Next.

9

Page 10: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

__5. Accept default destination folder and click Next.

Note: Your installation location may be slightly different. Accept whatever the default is.

__6. Accept default package selection. Click Next.

10

Page 11: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

__7. Click Install.

__8. A popup window may open asking to install the software. Click Yes to continue.

11

Page 12: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

__9. Click Finish.

Installation verification of Node.js

__1. Open a command prompt window.

__2. Enter the command:

node --version

__3. Make sure that you see v6.9.5 as the output.

12

Page 13: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

__4. Close all.

Part 9 - Installing Visual Studio Code

__1. Download the latest VScode for Windows (stable build installer) from the following site:

https://code.visualstudio.com/

__2. Run the downloaded installer to begin the installation.

__3. Click Next on the welcome screen.

__4. Check I accept the agreement... and click Next.

13

Page 14: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

__5. Leave the default installation location and click Next.

14

Page 15: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

__6. Leave the default start menu folder and click Next.

__7. Put a check mark on all items under Additional Tasks and click Next.

15

Page 16: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

__8. Now click Install.

16

Page 17: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

__9. Give it some time to install.

__10. When it is complete, uncheck Launch Visual Studio Code and click Finish.

17

Page 18: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

Installation verification of VScode.

__1. Launch Visual Studio Code using the shortcut on the desktop.

__2. Verify Visual Studio Code opens and that you see the Welcome screen.

18

Page 19: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

__3. Close all windows.

19

Page 20: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

Part 10 - MongoDB 3.0.6

__1. Open a command prompt window and type in the following command at the prompt and press ENTER (execute the command)

mkdir c:\data\db

__2. Enter the following command:

cd C:\Software\mongodb\bin

__3. Verify mongodb version

mongod -version

Make sure your version matches version 3.0.6.

__4. Start MongoDB server by running:

mongod

__5. If a Windows Security Alert open, click Allow Access.

You will see the "waiting for connections on port 27017" message.

__6. End MongoDB by hitting Control+C.

__7. Close all.

Part 11 - Summary

You have successfully installed the software for this course!

If you have any question please contact us by email at [email protected]

20

Page 21: WA2583 React JavaScript  · PDF filePart 7 - Nginx __1. Disable any service using Port 80 to be able to run Nginx, if you have IIS or other service running, stop and disable them

From US and Canada call: 1-877-812-8887 ext. 26

International call: 416-406-3994 ext. 26

Congratulations. The installation for this course has been completed.

21