Make sure that you have docker-compose already installed and then:
docker-compose up
Get car information by serialnumber
Add car information to the system
{
"serialNumber": 1001,
"ownerName": "Valya Peshehodka",
"modelYear": 1999,
"code": "code",
"vehicleCode": "vcode",
"engine": {
"capacity": 2000,
"numCylinders": 12,
"maxRpm": 100,
"manufacturerCode": "mcode"
},
"fuelFigures": {
"speed": 100,
"mpg": 100,
"usageDescription": "desc"
},
"performanceFigures": {
"octaneRating": 99,
"acceleration": {
"mph": 23,
"seconds": 1
}
},
"manufacturer": "Subaru",
"model": "Rx100",
"activationCode": "lucky"
}
Assignment
Write client-server application.
Use case: application which is used in car centers to store information about sold cars. At first application will be used in a single car center then all centers in town/city/world will use it to store information. It should be possible to retrieve info about any sold car by serialNumber. Clients pass to server an Object “Car” with
following attributes:
"ownerName" type="string"
"serialNumber" type="uint64"
"modelYear" type="uint64"
"code" type="string"
"vehicleCode" type="string"
"engine"
"capacity" type="uint16"
"numCylinders" type="uint8"
"maxRpm" type="uint16"
"manufacturerCode" type="char"
"fuelFigures"
"speed" type="uint16"
"mpg" type="float"
"usageDescription" type="string"
"performanceFigures"
"octaneRating" type="uint16"
"acceleration"
"mph" type="uint16"
"seconds" type="float"
"manufacturer" type="string"
"model" type="string"
"activationCode" type="string"
Server saves the information persistently.