This guide will show you how to build a servlets application with Gradle and the Jetty Plugin.
- Java and Git.
- An installed version of Postgres to run the application locally.
-
First clone this repository and
cd
into it.$ git clone git@github.com:acamino/servlets-quickstart.git $ cd servlets-quickstart
-
Create the database.
$ createdb servlets_quickstart
-
Copy the
.env.example
file to.env
, and edit it including your credentials. Runsource .env
to export the environment variables. -
Run the migrations.
$ ./gradlew flywayMigrate
-
Start the server.
$ ./gradew jettyRun
-
Check it out at http://localhost:8080
Please file tickets for bug or problems.
Edits and enhancements are welcome. Just fork the repository, make your changes and send me a pull request.