Complete application using mongodb, spark and freemarker