Last active
May 10, 2016 02:42
-
-
Save jacobbridges/b1c56b83b77a8b1b32af007154e378ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I don't even know where to begin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static spark.Spark.*; | |
public class HelloWorld { | |
public static void main(String[] args) { | |
// Create a route for the base endpoint | |
get("/", (req, res) -> "Hello World!"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn archetype:generate -DgroupId=com.excelmicro | |
-DartifactId=HelloWorld \ | |
-DarchetypeArtifactId=maven-archetype-quickstart \ | |
-DinteractiveMode=false \ | |
echo "<dependency> | |
<groupId>com.sparkjava</groupId> | |
<artifactId>spark-core</artifactId> | |
<version>2.5</version> | |
</dependency>" >> ./HelloWorld/pom.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment