Implementation of push notification - node.js

I have created a QUICK START PROJECT in visual studio with AZURE SERVER with the help of the link given below.
https://azure.microsoft.com/en-in/documentation/articles/app-service-mobile-cordova-get-started/
and now I want to configure it with push notifications for which I followed the steps show in the link below
https://azure.microsoft.com/en-in/documentation/articles/app-service-mobile-cordova-get-started-push/#nodejs
It says to make some changes in the code in the todoitem.js (index.js) from the first link.
I am not able to make those changes can anyone help me with what should be done?

Acutally, the todoitem.js is in your Mobile App backend server in Node.js. If you have created a Mobile Apps server for your own, you can find and edit this script in Easy Tables in your Mobile Apps' manage page in the Azure portal(https://ms.portal.azure.com).

Related

Nodejs send metrics of how many people are using my app

So i'm designing a new application with Nodejs and packaging into an executable then putting a release in github, I want to be able to monitor how many people are using my executable?
I was thinking about creating an api server and my application just make a call to that API service but I thought there might be something already out there any help?
The easiest way is to connect third party services that do that. The most famous one is Google Analytics
You just need to create your developer account and embed a few lines of tracking code. After that you can see full info about your visitors including their location.

How to start developing a web app to store data to CosmosDB in Azure

How do I get started the best way if I want to develop a quite simple web application that will store some user data into an Azure CosmosDB.
The web application should contain user authorization and everything should run in Azure. Furthermore I am pretty good in PHP and C#, which I prefer as development language.
My Question: Can any of you point me to a good tutorial or LinkedIn-Learning-Course?
I would prefer using Visual Studio Code as my primary environment.
Seems you are trying to develop a web application using cosmos db which can be run on azure portal.
Here is the nice official document you could learn step by step.
If you need code sample you can check here for code snippet
You can also find this sample for CRUD operation.
Note: I would suggest you to finish each of the document from beginning to end. So that later on you can easily grab others
tutorial.
If you still have any query feel free to share. Thanks and happy coding!

How to connect WIX template with 3rd party REST APIs?

I created a simple web site using WIX platform. (https://www.wix.com/). I have some simple forms. Like customer registration and package management. All the UI part is done. And I have a Node.JS server to manage customers and packages. API is 100% done.
Now I need to connect WIX template with my NOde.JS REST API. Is there any possible ways to do this ?
My Node Server is deployed on a Ubuntu server and I can access it anywhere.
Please help me on this.
Yes, now Wix has this thing called Wix Code platform, which enables you to dynamically control your UI components and bind it to data coming from the outside.
To answer your question, they have this fetch API which you can use to write code to fetch your own server and get the data from it. Here is a link Wix Code API - fetch
Anyway, this is their site, Wix Code, you may learn a lot more there. Also they have those tutorials and examples of many "how to..." and examples Wix Code Tutorials and Videos
Cheers!

How to work with Visual studio Team Services Oauth Model and what is the purpose of Azure

I'm working with Visual Studio Online, and trying to use work with Oauth, which will allow me to use RESTFUL API of VSTS in my APP. How can I work. Please give a detailed answer, I'm confused.
One more thing is, while registering App in VSTS, there are two fields Application Website and Authorization Callback URL, which are making me more confused, what is the purpose of these two fields while registering App for Oauth.
First go read some documentation on Oauth and how it works.
On a high level, how does OAuth 2 work?
Then go read the documentation, which includes code examples, for VSO.
https://www.visualstudio.com/en-us/integrate/api/overview
Once you run into a specific issue, ask your question here with examples of what you tried.
i tried to use app for OAuth on my site. Got 400 Bad request on Visual Studio Online site everytime when code executed (user redirected to next URL from sample app):
return String.Format("{0}?client_id={1}&response_type=Assertion&state={2}&scope={3}&redirect_uri={4}",
ConfigurationManager.AppSettings["AuthUrl"],
ConfigurationManager.AppSettings["AppId"],
"state",
ConfigurationManager.AppSettings["Scope"],
ConfigurationManager.AppSettings["CallbackUrl"]
);
What`s wrong? Is there is some limitation for values in App registration page above?

Connect to Foursquare app in developer mode

Following the advice of a fellow Stack Overflow user (on a previous question which I asked: Lastest Foursquare check-in on map) I have written a PHP-based Foursquare app which uses the Push API to show my latest checkin on a map which I can then embed into my blog.
Obviously I would like to keep this app private, so that it only shows my latest checkins. I figured the best way would be to keep the app in Developer Mode, but it seems that I can't connect to the app myself (i.e. using the same account as I used to create the app) in this mode. This also means that I can't even test the app is working properly, as I can't send test push messages from my own account when I checkin to certain locations. Is there a way around this issue? Alternatively, what other options are available for keeping the app private?
After you create the app in "Developer mode", lookup the Client ID and manually navigate to:
https://foursquare.com/app/<CLIENT_ID>

Resources