Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 654 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 654 Bytes

Example of CRUD with JSR-371 and MongoDB

Simple example of using JSR-371 together with MongoDB to do CRUD operations.

#Resources Used

  • Java 8
  • Payara-Micro
  • Apache Maven 3.3.9
  • MongoDB 3.6
  • JNoSQL

Run

  • Start MongoDB default port=27017 with the command in the Prompt / Shell: mongod
  • mvn clean package payara-micro:bundle && mvn payara-micro:start
  • Test by accessing the address : http://localhost:yourdoor/MVC1.0.Krazo/

Docker

Image pull -> https://hub.docker.com/r/danieldiasjava/mvc-jnosql-crud/

OBS: Alter 'Settings settings = Settings.builder().put("mongodb-server-host-1", "localhost:27017").build();' for "mongo:27017"