Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A simple program that reads a text file containing an array JSON product objects and loads then into a database where they are accessible via a REST endpoint.

License

Notifications You must be signed in to change notification settings

jstemen/json-to-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-to-db

A simple program that reads a text file containing an array JSON product objects and loads then into a database where they are accessible via a REST endpoint.

Getting It Up and Running

  1. Change the json.file.location property in the propertyFile.properties file to point to the JSON text file on your local file system.

  2. Compile the program and import the data into the db with: mvn install exec:java -Dexec.mainClass=com.jaredstemen.blogspot.jsonimport.JsonFileImporterRunner

  3. Start up the web server with: mvn jetty:run

  4. Checkout the Rest class for a list of available REST endpoints.

  5. Use Chrome's Postman, or some other REST client, to test it out.

About

A simple program that reads a text file containing an array JSON product objects and loads then into a database where they are accessible via a REST endpoint.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages