Get Free Trial

How to Implement Security and DB connection for custom data source api (data server using Node js)?

Answered
harish asked 1 day ago

Hello,
We are attempting to setup custom data source api (data server using Node js) for the first time. Using SDK of node js (https://github.com/flexmonster/api-data-source). Trying to implement security and DB connection for index but not getting appropriate guidance after exploring the various related article.
Please guide us for:

  • Security implementation (setting username/password for front end request verification/CORS)
  • Creating indexes and configure to get data Object connecting and fetching from MySQL DB

 
 

2 answers

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster 11 hours ago

Hi Harish,
 
Thank you for posting your question.
 
Please note that the Node.js server in the mentioned GitHub repository is a sample implementation of the custom data source API, not an SDK.
 
That being said, feel free to refer to it as to an example, but how you handle the security aspects and data fetching is entirely up to you.
 
As for the key features of custom data source API, this guide (and the ones it refers to) cover them in full.
 
Please let us know if this helps.
 
Best regards,
Mykhailo

Public
harish 8 hours ago

Hi Mykhailo,

Thanks, for the reply. 

Currently we are using flexmonster-data-server.exe, to provide data to frontend request.
How can we implement server filter, I was exploring the article flexmonster.com/doc/implementing-server-filter/

If I use sample .NET Core server after getting the source code from Git then, have we to implement the security aspects and data fetching?
Please suggest.
 
Warm Regards,
Harish

Please login or Register to Submit Answer