diff options
Diffstat (limited to 'NodeJSServer')
-rw-r--r-- | NodeJSServer/NodeJSServer.njsproj | 77 | ||||
-rw-r--r-- | NodeJSServer/README.md | 3 | ||||
-rw-r--r-- | NodeJSServer/package.json | 9 | ||||
-rw-r--r-- | NodeJSServer/server.js | 8 |
4 files changed, 97 insertions, 0 deletions
diff --git a/NodeJSServer/NodeJSServer.njsproj b/NodeJSServer/NodeJSServer.njsproj new file mode 100644 index 0000000..1cae2c8 --- /dev/null +++ b/NodeJSServer/NodeJSServer.njsproj @@ -0,0 +1,77 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> + <PropertyGroup> + <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> + <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> + <Name>NodeJSServer</Name> + <RootNamespace>NodeJSServer</RootNamespace> + <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> + </PropertyGroup> + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>57064377-c08c-4218-9c55-0552d40f3877</ProjectGuid> + <ProjectHome>.</ProjectHome> + <StartupFile>server.js</StartupFile> + <SearchPath> + </SearchPath> + <WorkingDirectory>.</WorkingDirectory> + <OutputPath>.</OutputPath> + <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> + <ProjectTypeGuids>{3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{349c5851-65df-11da-9384-00065b846f21};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD}</ProjectTypeGuids> + <NodejsPort>1337</NodejsPort> + <StartWebBrowser>true</StartWebBrowser> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> + <DebugSymbols>true</DebugSymbols> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> + <DebugSymbols>true</DebugSymbols> + </PropertyGroup> + <ItemGroup> + <Compile Include="server.js" /> + <Content Include="package.json" /> + <Content Include="README.md" /> + </ItemGroup> + <!-- Do not delete the following Import Project. While this appears to do nothing it is a marker for setting TypeScript properties before our import that depends on them. --> + <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" Condition="False" /> + <Import Project="$(VSToolsPath)\Node.js Tools\Microsoft.NodejsTools.targets" /> + <ProjectExtensions> + <VisualStudio> + <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> + <WebProjectProperties> + <UseIIS>False</UseIIS> + <AutoAssignPort>True</AutoAssignPort> + <DevelopmentServerPort>0</DevelopmentServerPort> + <DevelopmentServerVPath>/</DevelopmentServerVPath> + <IISUrl>http://localhost:48022/</IISUrl> + <NTLMAuthentication>False</NTLMAuthentication> + <UseCustomServer>True</UseCustomServer> + <CustomServerUrl>http://localhost:1337</CustomServerUrl> + <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> + </WebProjectProperties> + </FlavorProperties> + <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}" User=""> + <WebProjectProperties> + <StartPageUrl> + </StartPageUrl> + <StartAction>CurrentPage</StartAction> + <AspNetDebugging>True</AspNetDebugging> + <SilverlightDebugging>False</SilverlightDebugging> + <NativeDebugging>False</NativeDebugging> + <SQLDebugging>False</SQLDebugging> + <ExternalProgram> + </ExternalProgram> + <StartExternalURL> + </StartExternalURL> + <StartCmdLineArguments> + </StartCmdLineArguments> + <StartWorkingDirectory> + </StartWorkingDirectory> + <EnableENC>False</EnableENC> + <AlwaysStartWebServerOnDebug>False</AlwaysStartWebServerOnDebug> + </WebProjectProperties> + </FlavorProperties> + </VisualStudio> + </ProjectExtensions> +</Project>
\ No newline at end of file diff --git a/NodeJSServer/README.md b/NodeJSServer/README.md new file mode 100644 index 0000000..114a250 --- /dev/null +++ b/NodeJSServer/README.md @@ -0,0 +1,3 @@ +# NodeJSServer + + diff --git a/NodeJSServer/package.json b/NodeJSServer/package.json new file mode 100644 index 0000000..74f3c41 --- /dev/null +++ b/NodeJSServer/package.json @@ -0,0 +1,9 @@ +{ + "name": "node-jsserver", + "version": "0.0.0", + "description": "NodeJSServer", + "main": "server.js", + "author": { + "name": "Dennis" + } +} diff --git a/NodeJSServer/server.js b/NodeJSServer/server.js index e69de29..0c553eb 100644 --- a/NodeJSServer/server.js +++ b/NodeJSServer/server.js @@ -0,0 +1,8 @@ +'use strict'; +var http = require('http'); +var port = process.env.PORT || 1337; + +http.createServer(function (req, res) { + res.writeHead(200, { 'Content-Type': 'text/plain' }); + res.end('Hello World\n'); +}).listen(port); |