mirror of
https://github.com/sbrl/Nibriboard.git
synced 2018-01-10 21:33:49 +00:00
Begin setting up http server & client code.
This commit is contained in:
parent
127f838798
commit
424a6bfcd1
4 changed files with 113 additions and 1 deletions
54
.gitignore
vendored
54
.gitignore
vendored
|
@ -38,3 +38,57 @@ Thumbs.db
|
|||
|
||||
# dotCover
|
||||
*.dotCover
|
||||
|
||||
# Created by https://www.gitignore.io/api/node
|
||||
|
||||
### Node ###
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules
|
||||
jspm_packages
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
|
||||
# End of https://www.gitignore.io/api/node
|
||||
|
|
28
Nibriboard/Client/package.json
Normal file
28
Nibriboard/Client/package.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"name": "nibriboard-client",
|
||||
"version": "0.0.1",
|
||||
"description": "The client program for nibriboard, an infinite whiteboard.",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"rollupify": "^0.3.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"rollupify": "^0.3.8"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo There aren\\'t any tests yet!"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.starbeamrainbowlabs.com/sbrl/Nibriboard"
|
||||
},
|
||||
"keywords": [
|
||||
"whiteboard",
|
||||
"infinite",
|
||||
"chunks",
|
||||
"drawing",
|
||||
"client"
|
||||
],
|
||||
"author": "Starbeamrainbowlabs <feedback@starbeamrainbowlabs.com>",
|
||||
"license": "MPL-2.0"
|
||||
}
|
25
Nibriboard/Nibriboard.cs
Normal file
25
Nibriboard/Nibriboard.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
using System.Reflection;
|
||||
using IotWeb.Server;
|
||||
using IotWeb.Common.Http;
|
||||
namespace Nibriboard
|
||||
{
|
||||
public class Nibriboard
|
||||
{
|
||||
private HttpServer httpServer;
|
||||
|
||||
public readonly int Port = 31586;
|
||||
|
||||
public Nibriboard()
|
||||
{
|
||||
}
|
||||
|
||||
public void Setup()
|
||||
{
|
||||
httpServer = new HttpServer(Port);
|
||||
httpServer.AddHttpRequestHandler(
|
||||
"/"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -47,12 +47,17 @@
|
|||
<Compile Include="RippleSpace\DrawnLine.cs" />
|
||||
<Compile Include="RippleSpace\Reference.cs" />
|
||||
<Compile Include="Utilities.cs" />
|
||||
<Compile Include="Nibriboard.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Client\" Exclude="node_modules" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="RippleSpace\" />
|
||||
<Folder Include="Client\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
Loading…
Reference in a new issue