Skip to content

An example Java Liberty Application using DB2 to store Phone numbers.

License

Notifications You must be signed in to change notification settings

ibmcontest/phonebookdemo

Repository files navigation

phonebook

An example Java Liberty Application using DB2 to store Phone numbers.

Once deployed, the list of endpoints can be found in the following documentation:

  • WADL definition: GET /wadl.xml
  • Swagger 2.0 JSON definition: GET /api/swagger.json
  • Swagger 2.0 YAML definition: GET /api/swagger.yaml
  • RAML 0.8 definition: GET /api.raml
  • Api Blueprint 1A definition GET /api.apib

Deploying on Bluemix

You'll need a Bluemix account, and then deploy this application to Bluemix

Deploying locally

  • Make sure Node.js is installed (to get npm)
  • Make sure bower is installed (npm install -g bower)
  • run npm install in the root of project directory
  • Set up a DB2 datasource
  • Modify persistence.xml and follow the comments to connect to the datasource
  • Copy mysql-connector-java.jar on your local machine (i.e. C:/mysql)
  • Copy server.xml into the Liberty server instance. Make modification as indicated by the comments within the file.
  • Publish the application to the Liberty server instance.

To test UI

  • Make sure gulp is installed (npm install -g gulp)
  • Run gulp test

About

An example Java Liberty Application using DB2 to store Phone numbers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •