-
Notifications
You must be signed in to change notification settings - Fork 0
sadashpr/app2
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang16393{\fonttbl{\f0\fnil\fcharset0 Calibri;}{\f1\fnil Consolas;}{\f2\fnil\fcharset0 Consolas;}{\f3\fnil\fcharset2 Symbol;}}
{\colortbl ;\red0\green77\blue187;\red0\green255\blue255;\red0\green0\blue0;\red212\green212\blue212;}
{\*\generator Riched20 10.0.15063}\viewkind4\uc1
\pard\sa200\sl276\slmult1\f0\fs22\lang9\par
\b\fs28 Steps to use/test applications 1& 2.\b0\fs22\par
\pard
{\pntext\f0 1.\tab}{\*\pn\pnlvlbody\pnf0\pnindent0\pnstart1\pndec{\pntxta.}}
\fi-360\li720\sa200\sl276\slmult1 checkout both code bases and import them to eclipse.\par
{\pntext\f0 2.\tab}Sample CSV file is already present in the resources folder of applicatoin 1 . This can be edited or replaced with any othe csv file in same format.\par
{\pntext\f0 3.\tab}Run application 2 as a spring boot application using Application2.java . Application 2 comes up on port 8090 .\par
{\pntext\f0 4.\tab}Now start application 1 as a spring boot application using CsvJsonApplication.java. Application1 will come up on port 8080. It will parse the csv file and post the json formated data to application 2's rest endpoint. \par
{\pntext\f0 5.\tab}Application 2 will recieved the data and save the data is DB. \par
{\pntext\f0 6.\tab}In the absense of a UI , interaction with application 2 is to be done through postman application. Below are the various rest apis and its usage for application 2.\par
\pard{\pntext\f3\'B7\tab}{\*\pn\pnlvlblt\pnf3\pnindent0{\pntxtb\'B7}}\fi-360\li720\sa200\sl276\slmult1\cf1\highlight2 POST \cf0\highlight0 /rest/addallcustomer\lang16393 --> used by app1 to send data . Also can be used from postman to send more customers data in bulk as a json string \lang9\par
{\pntext\f3\'B7\tab}\cf1\highlight2\lang16393 GET \cf0\highlight0 /rest/showallcustomers\lang9 --> used to list all customers stored in database.\par
{\pntext\f3\'B7\tab}\cf1\highlight2 POST \cf0\highlight0 /rest/addacustomer -> add a new customer data.\par
{\pntext\f3\'B7\tab}\cf1\highlight2 POST \cf0\highlight0 /rest/searchacustomerbyID --> search a customer by id.\par
{\pntext\f3\'B7\tab}\cf1\highlight2 POST \cf0\highlight0 /rest/searchacustomerbyfirstname --> search a customer by first name.\par
\pard\sa200\sl276\slmult1\par
\b Application 3 .\par
\b0 Application 3 is similar to application 2 . The only changes lie in added cache management to handle data at a faster rate and batch processing of record insertion . batch processing can be seen in \cf3\highlight4\f1\fs20 batchSave\f2\lang16393 () of \highlight0\f1\lang9 CustomerService\f2\lang16393 .java.\cf0\b\f0\fs22\lang9\par
\par
\b0\par
\par
\par
}
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published