Enabled CORS in the app so that adopters can quickly start integration. This was encountered even during our devcon days and we had enabled it then by hard-code. Now, I've externalised the origins to the configuration.
Explicitly added port 8080 to application configuration. Thought this was already added, but find it missing.
Used Alpaca - a json-schema form generator to generate a dynamic form for the Person schema.
Turned off perf - default option must be that.
If the database shard is set to "none", the class name provided must be ignored. Presently, the class is attempted to instantiate and throws an exception.
The class name for shard advisor property was not specified properly and so was failing.
Note: The last two items were part of OS-222, but being taken as the files are same.
Testing:
Able to do 'required' validations.
Able to add a record to the database from the UI.
As part of this PR, the following is not done:
Other than Add operations, we need some UI buttons and html files to showcase.
Validations to be done at UI level with ajv {another json schema validator}
Other cosmetic things like layout - this can be done using alpaca. A sample could be provided in our repo.
Enabled CORS in the app so that adopters can quickly start integration. This was encountered even during our devcon days and we had enabled it then by hard-code. Now, I've externalised the origins to the configuration. Explicitly added port 8080 to application configuration. Thought this was already added, but find it missing. Used Alpaca - a json-schema form generator to generate a dynamic form for the Person schema. Turned off perf - default option must be that. If the database shard is set to "none", the class name provided must be ignored. Presently, the class is attempted to instantiate and throws an exception. The class name for shard advisor property was not specified properly and so was failing. Note: The last two items were part of OS-222, but being taken as the files are same.
Testing:
As part of this PR, the following is not done: