summaryrefslogtreecommitdiff
path: root/DSACore/Program.cs
diff options
context:
space:
mode:
authoruzvkl <dennis.kobert@student.kit.edu>2019-06-11 23:33:41 +0200
committeruzvkl <dennis.kobert@student.kit.edu>2019-06-11 23:33:41 +0200
commitaf74efccf8d21e6151022b71f3cacd3fa83024ee (patch)
tree20f383065d5cadea36e8d11d4bb3b35eca99f691 /DSACore/Program.cs
parente6181c24124d97f2fbc932b8a68311e625463156 (diff)
Seperate the Core from dsa gamelogic
Diffstat (limited to 'DSACore/Program.cs')
-rw-r--r--DSACore/Program.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/DSACore/Program.cs b/DSACore/Program.cs
new file mode 100644
index 0000000..8af0a74
--- /dev/null
+++ b/DSACore/Program.cs
@@ -0,0 +1,24 @@
+using DSALib.DSA_Game;
+using DSALib.FireBase;
+using Microsoft.AspNetCore;
+using Microsoft.AspNetCore.Hosting;
+
+namespace DSACore
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ Database.GetGroup(0).Wait();
+ Dsa.Startup();
+ CreateWebHostBuilder(args).Build().Run();
+ }
+
+ public static IWebHostBuilder CreateWebHostBuilder(string[] args)
+ {
+ return WebHost.CreateDefaultBuilder(args)
+ .UseStartup<Startup>()
+ .UseUrls("http://0.0.0.0:5000");
+ }
+ }
+} \ No newline at end of file