Initial commit
This commit is contained in:
commit
6eec2cfdbf
|
@ -0,0 +1,9 @@
|
||||||
|
.dub
|
||||||
|
docs.json
|
||||||
|
__dummy.html
|
||||||
|
*.o
|
||||||
|
*.obj
|
||||||
|
__test__*__
|
||||||
|
|
||||||
|
doodul
|
||||||
|
.vagrant
|
|
@ -0,0 +1,13 @@
|
||||||
|
# -*- mode: ruby -*-
|
||||||
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
|
Vagrant.configure("2") do |config|
|
||||||
|
config.vm.box = "archlinux/archlinux"
|
||||||
|
|
||||||
|
config.vm.network "forwarded_port", guest: 8080, host: 8080
|
||||||
|
|
||||||
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
|
pacman -Syu --noconfirm
|
||||||
|
pacman -S --noconfirm libevent liblphobos
|
||||||
|
SHELL
|
||||||
|
end
|
|
@ -0,0 +1,7 @@
|
||||||
|
name "doodul"
|
||||||
|
description "A multiplayer drawing game"
|
||||||
|
authors "Les De Ridder"
|
||||||
|
copyright "Copyright © 2017, Les De Ridder"
|
||||||
|
license "NCSA"
|
||||||
|
dependency "vibe-d" version="~>0.8.0"
|
||||||
|
versions "Have_botan"
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"fileVersion": 1,
|
||||||
|
"versions": {
|
||||||
|
"botan": "1.12.9",
|
||||||
|
"botan-math": "1.0.3",
|
||||||
|
"diet-ng": "1.2.1",
|
||||||
|
"eventcore": "0.8.12",
|
||||||
|
"libasync": "0.8.3",
|
||||||
|
"libevent": "2.0.2+2.0.16",
|
||||||
|
"memutils": "0.4.9",
|
||||||
|
"openssl": "1.1.5+1.0.1g",
|
||||||
|
"taggedalgebraic": "0.10.7",
|
||||||
|
"vibe-core": "1.0.0",
|
||||||
|
"vibe-d": "0.8.0"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
import vibe.vibe;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
auto settings = new HTTPServerSettings;
|
||||||
|
settings.port = 8080;
|
||||||
|
listenHTTP(settings, &hello);
|
||||||
|
|
||||||
|
logInfo("Please open http://127.0.0.1:8080/ in your browser.");
|
||||||
|
runApplication();
|
||||||
|
}
|
||||||
|
|
||||||
|
void hello(HTTPServerRequest req, HTTPServerResponse res)
|
||||||
|
{
|
||||||
|
res.writeBody("Hello, World!");
|
||||||
|
}
|
Loading…
Reference in New Issue