We are building a web & mobile chat application. The use case is that consumers can chat to our customer service using an android mobile app. Our backend team will reply to the users using the web app.
The web app will also have features to upload posts to the parse database that will be visible on the users newsfeed, query the parse database for items/transactions & upload new product SKUs to the database.
For the chat we will be using a service like Layer/Pubnub/Socket.IO along with Parse as the database. Will this architecture work well ?
Also, for the web app, should we use the native Parse JS SDK? or develop a Node.JS/Express.JS application using the Parse REST API?
For a server side Node.js app, I'd say the JS SDK works fine. I've used the REST API to develop JS Client-side plugins (there's prbly a JS way using RequireJS) and to interface Parse to other languages such as R. A couple of pastebins as samples:
Javascript - http://pastebin.com/eqAs5EDT
REST - http://pastebin.com/7TtZUwzy
Related
I've currently got a REST API (written in Java using Spring) and a frontend for that API (written in Javascript using Express) which will query that API for the data to display. I've not gotten too far along in the frontend, and wanted to add in my Authorization/Authentication. I would like to use Azure Active Directory (AAD) for this - we have users in AAD, so this is what we're pursuing. I understand that I can use the MSAL.js library to get an access_token that I can then send to my Java REST API for validation. However, I'm not able to find any decent documentation or examples for this specific case, though. I see a some Javascript Single Page Application (SPA) documentation and examples, but seeing as this is AuthN/AuthZ, I don't want to have a kinda correct solution, because this is important stuff. I also want to make sure I'm handling caching, sign outs, etc, in the right manner.
If anyone could point me in the direction of some documentation, examples, readings, etc, I'd be very appreciative!
Thanks!
You can use MSAL.js to easily integrate with the front end of your API for authentication/authorization of your users.
For java web apps, you can use the MSAL4J authentication library, so that the application can be integrated with the Microsoft identity platform. It allows you to log in to a user or application using a Microsoft identity (Azure AD, Microsoft account, and Azure AD B2C account) and obtain a token to call the Microsoft API.
For more details, please check:here.
Microsoft Dynamics 365 CRM has most current client and company data and I need it for the internal database the frequently uses the data. Trying to replace duplicative databases where one is getting updated (CRM) and the other is not.
Because it is Office 365 and hosted in the cloud, we don't have access to the database, just are able to use the Web API. The Web API is over an HTTPS connection and requires login credentials.
One thought was to use a PostgreSQL FDW like www_fdw, which is great except it accepts no options for login credentials. There does not appear to be alternatives.
So I am back to using Django, Python, and/or Javascript to get the JSON, de-serialize it, and import it into the database.
I do not need to display it in a Django template. Really, it just needs to come from CRM and go directly into the database. I am just not sure the best way to handle it.
For example, would the Django REST Framework make it easier than just using JavaScript and Python to request the Web API and de-serialize? From there, how is written to the database if it is bypassing Django?
I would create an intermediate web service, with no auth, available only in local domain. Postgre would call the WS, and the WS would call CRM using standard SDK techniques. You can use the methods described here: Unable to add a service reference to Dynamics 365 crm in visual studio 2012
The WEB Api is very limited in functionality and very hard to set up (security wise). In my opinion the effort is not worth it, if you can have a workaround.
I suggest you create a logic app with a Dynamics 365 connector to PostgreSQL. There's a sample in the link below :
https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-crmonline
I want to create multiple app on Quickblox for my application using api(ruby on rails), is there any way to create multiple Quickblox app using apis or javascript SDK ?
There is no way to create QuickBlox applications programmatically,
you can do it via Admin panel only.
If you need to automate it - potentially you can use some sort of Selenium browser automation
I'm trying to develop a small system with a easy architecture. In this case I have one simulator that generate random data and publish this data on PubNub. Otherwise, i have too two subscribers: one web based dashboard and MongoDB database.
At this moment, I developed the simulator and the dashboard. The next stage is receive the PubNub subscribe data and insert into MongoDB.
My issue is how I can do this remotely? What is the framework that I should use? I saw many tutorials that start MongoDB DB by terminal on local machine, remotely how this works?
Someone can give me a full explication?
Regards,
Note: I use PubNub JS SDK, my dashboard was developed in HTML, CSS and JS
I have a webpage through which my users, using a mobile phone, can take pictures and upload them (hopefully) to the Google Cloud (I've got a JSON file, a platform project and an associated storage bucket, as well as all the login details).
However, I'm pretty new to all this and need to know how I'd get the file (coming from a standard <input file="" name="fileupload"/> ) to the Google Cloud space, and also to retrieve the URI of the file. Given that it's an asp.net webpage, I have access to Javascript and C#.
Thanks!
I have a couple of suggestions for you. We have other customers that have solutions which are similar to this architecture and so your proposed solution is good.
Google Cloud Storage (GCS) has a feature called Signed URLs. This allows you to generate a secure URL to an object in a GCS bucket. My colleague wrote the C# sample for this:
https://cloud.google.com/storage/docs/access-control#signing-code-csharp
There's a method in here that you can reuse GetSigningURL.
Each time a user requests the web page, you should generate a Signed URL and use this as the destination URL for the file upload location in your HTML.
If your HTML is generated by ASP.NET (MVC, Web Forms, Web Page), then you can make the call to GetSigningURL when the page is generated server-side. If not, you should wrap the C# code in a Web API and then you could use, e.g. jQuery ($.ajax), to call it from your client.
You may run your ASP.NET code on Google Cloud Platform using either Windows on Google Compute Engine or using Custom Runtimes on Google App Engine.
Full disclosure: I'm a Googler working in cloud as a Strategic Customer Engineer.