Author Archives: acrocontext

SpringBoot WebFlux – Reading a request body with Spring WebFlux for Controller

SpringBoot WebFlux 2.2.x requires to load the request body by using an input stream. Below example will show how it can convert the json data into the expected class after loading json data with an input stream. Full source code … Continue reading

Posted in Programming, Spring | Leave a comment

React – create-react-app proxy setting

create-react-app allow to configure the proxy setting on calling API. documentation: https://create-react-app.dev/docs/proxying-api-requests-in-development/ Example https://github.com/nsclass/ns-svg-converter/blob/master/ns-svg-converter-react/src/setupProxy.js

Posted in Programming | Leave a comment

Electron – Using reach router for Electron app

Creating a history with a memorySource will allow to work for Electron application with reach/router

Posted in Electron | Leave a comment

Electron – Rederer process can use Node feature

Setting nodeIntegration true in webPreferences section in main.js will allow to use Node feature in renderer process such as require. And setting webSecurity false will disable CORS in a renderer process. If a renderer process needs to access the self … Continue reading

Posted in Electron, Programming | Leave a comment

Electron – creating an electron app with react, typescript and emotion CSS

Please find the following github for details steps and example. https://github.com/nsclass/ns-electron-app

Posted in JavaScript, Programming | Leave a comment

VSCode – Improving productivity with VS code

https://burkeholland.gitbook.io/vs-code-can-do-that/

Posted in Programming, vscode | Leave a comment

JavaScript – find all available functions and properties in an object

The following three functions are very useful on inspecting methods and properties in any Javascrip object. Github code: https://github.com/nsclass/describe-javascript-object-methods/blob/master/list-object-methods.js For instance, we can list all available functions and each function’s arguemnts in fs node module. Results

Posted in JavaScript, Programming | Leave a comment