Skip to content

A Play Framework (Java) implementation of the Java Pet Store sample application.

Notifications You must be signed in to change notification settings

Sadraukar/play-pet-store

Repository files navigation

Play Pet Store

An implementation of Java Pet Store application using Play Framework for Java.

Getting Started

1.) Create a new database in your Postgres instance.

2.) Create the file application-local.conf in /conf. Copy the following into it, substituting the appropriate details for your target database:

# Database Connection Configuration
db.default.url                             = "jdbc:postgresql://localhost/play_pet_store"
db.default.username                        = "ppsuser"
db.default.password                        = "ppspass"
db.default.logSql                          = false
db.default.databaseName                    = "play_pet_store"

#  This is a development environment, disable CSRF filtering
play.filters.disabled += "play.filters.csrf.CSRFFilter"

Prerequisites

  • JDK 11.x
  • sbt 1.7.1
  • Postgres 9.6

Running the App

To build the project, cd to the project's base directory and run:

sbt run

This should start the application, which will be accessible at http://localhost:9000

Built With

Contributing

This is a demonstration project meant for a technical talk. If you'd like to contribute, you are welcome to by emailing the author. However, this project is not slated for future development by the author.

Authors

  • Gregory Taylor

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

A Play Framework (Java) implementation of the Java Pet Store sample application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published