Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8f6a76b

Browse filesBrowse files
committed
Added HelloWorldHTTP Demo 2
1 parent 0c3f28b commit 8f6a76b
Copy full SHA for 8f6a76b

File tree

5 files changed

+61
-0
lines changed
Filter options

5 files changed

+61
-0
lines changed

‎02_HelloWorldHTTP/.ntvs_analysis.dat

Copy file name to clipboard
1020 KB
Binary file not shown.
+37Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
3+
<PropertyGroup>
4+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion>
5+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
6+
<Name>02_HelloWorldHTTP</Name>
7+
<RootNamespace>02_HelloWorldHTTP</RootNamespace>
8+
</PropertyGroup>
9+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
10+
<PropertyGroup>
11+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
12+
<SchemaVersion>2.0</SchemaVersion>
13+
<ProjectGuid>69b6bc1b-8847-407c-917e-bf80e6a32203</ProjectGuid>
14+
<ProjectHome>.</ProjectHome>
15+
<StartupFile>app.js</StartupFile>
16+
<StartWebBrowser>False</StartWebBrowser>
17+
<SearchPath>
18+
</SearchPath>
19+
<WorkingDirectory>.</WorkingDirectory>
20+
<OutputPath>.</OutputPath>
21+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
22+
<ProjectTypeGuids>{3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD}</ProjectTypeGuids>
23+
<ProjectView>ShowAllFiles</ProjectView>
24+
<StartWebBrowser>false</StartWebBrowser>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
27+
<DebugSymbols>true</DebugSymbols>
28+
</PropertyGroup>
29+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
30+
<DebugSymbols>true</DebugSymbols>
31+
</PropertyGroup>
32+
<ItemGroup>
33+
<Compile Include="app.js" />
34+
<Content Include="package.json" />
35+
</ItemGroup>
36+
<Import Project="$(VSToolsPath)\Node.js Tools\Microsoft.NodejsTools.targets" />
37+
</Project>

‎02_HelloWorldHTTP/app.js

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var http = require('http');
2+
3+
var server = http.createServer(function (request, response) {
4+
response.writeHead(200, { "Content-Type": "text/plain" });
5+
response.end("Hello World\n");
6+
});
7+
8+
server.listen(7000);

‎02_HelloWorldHTTP/package.json

Copy file name to clipboard
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "_02_HelloWorldHTTP",
3+
"version": "0.0.0",
4+
"description": "02_HelloWorldHTTP",
5+
"main": "app.js",
6+
"author": {
7+
"name": "Rami Sayar",
8+
"email": ""
9+
}
10+
}

‎NodeMVA.sln

Copy file name to clipboardExpand all lines: NodeMVA.sln
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1111
.gitignore = .gitignore
1212
EndProjectSection
1313
EndProject
14+
Project("{9092AA53-FB77-4645-B42D-1CCCA6BD08BD}") = "02_HelloWorldHTTP", "02_HelloWorldHTTP\02_HelloWorldHTTP.njsproj", "{69B6BC1B-8847-407C-917E-BF80E6A32203}"
15+
EndProject
1416
Global
1517
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1618
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +23,10 @@ Global
2123
{261162A0-B746-4EA0-A307-E5E4128F9257}.Debug|Any CPU.Build.0 = Debug|Any CPU
2224
{261162A0-B746-4EA0-A307-E5E4128F9257}.Release|Any CPU.ActiveCfg = Release|Any CPU
2325
{261162A0-B746-4EA0-A307-E5E4128F9257}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{69B6BC1B-8847-407C-917E-BF80E6A32203}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{69B6BC1B-8847-407C-917E-BF80E6A32203}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{69B6BC1B-8847-407C-917E-BF80E6A32203}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{69B6BC1B-8847-407C-917E-BF80E6A32203}.Release|Any CPU.Build.0 = Release|Any CPU
2430
EndGlobalSection
2531
GlobalSection(SolutionProperties) = preSolution
2632
HideSolutionNode = FALSE

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.