@@ -0,0 +1,1112 @@
+package io.github.tombom4.webApp;%0A%0Aimport freemarker.template.Configuration;%0Aimport freemarker.template.Template;%0A%0Aimport java.io.StringWriter;%0Aimport java.util.HashMap;%0A%0Aimport static spark.Spark.*;%0A%0A/**%0A * @author Thomas%0A * @version 1.0 09.01.2016%0A */%0Apublic class Main %7B%0A%0A/*    static Database db;%0A    static MongoCollection%3CBsonDocument%3E users;*/%0A    static final Configuration configuration = new Configuration();%0A%0A    public static void main(String%5B%5D args) %7B%0A        /*db = new Database();%0A        users = db.getUsers();*/%0A%0A        // Initialize Freemarker configuration%0A        configuration.setClassForTemplateLoading(Main.class, %22/%22);%0A%0A        staticFileLocation(%22/%22);%0A        get(%22/%22, (request, response) -%3E %7B%0A            StringWriter writer = new StringWriter();%0A            try %7B%0A                Template template = configuration.getTemplate(%22templates/index.ftl%22);%0A                template.process(new HashMap%3CString, Object%3E(), writer);%0A            %7D catch (Exception e) %7B%0A                e.printStackTrace();%0A                halt(500);%0A            %7D%0A            return writer;%0A        %7D);%0A    %7D%0A%7D%0A

Update .gitignore