Connecting project in Monaca Mobile restful api backend with mysql database - angularjs

Connecting project in Monaca Mobile restful api backend with mysql database
I have a backend developed with php and mysql with various restful apis consultation, inclusion, exclusion ready. I need to connect the mobile project in Monaca this backend by apis from our server.
I'm trying different codes using angular, but nothing has certain data. If I can not make this connection will give up working with monaca.
Thank you!

Could not find a working rest example. This example connects to remote server and pulls data from a remote server. Changing URL should take care of the rest.
https://github.com/argelius/onsen-weather-sample

Related

Get IP address of the server that is hosting a client-side js application

There is a back-end server using asp.net core web-api, and the Nginx as reverse-proxy, all hosted on docker on the ubuntu server.
Also, a client-side web application (reactjs) which makes REST API calls to the back-end using JS 'Fetch' (or Axios, etc...)
The client-side app is not centralized and it could be hosted on any number of servers.
(Let's say hosted on 5 servers.
So now we have 1 back-end server, and 5 servers hosting that reactjs app.)
objective
Every time one of the client apps makes an HTTP request to the back-end, I want to get the IP address of the server that's hosting that specific reactjs app.
But what I'm getting is the end-user IP address, not the server that's hosting the react app
Is it possible to do that? without asking the users to put their server's IP into their REST requests manually?
I've tried some Nginx configurations with no luck.
Thanks in advance.

Host Django and React on the same server?

I am working on a SAS product. So there could be 1000 users using my application at the same time.
Technologies Used:
Django for Backend
React.js for frontend
Django Rest Framework for APIs
I have hosted this project on a server with customized Nginx settings as shown here: https://stackoverflow.com/a/60706686/6476015
For now, I am having no issues but I want to know if there is some possibility of something going wrong in the future as usage and data will increase. Should I host the frontend and backend on separate servers?

Connecting yeoman (+angular) with database

I am rewriting my JavaScript app using Yeoman and AngularJS. So far, I used simple webpy framework and everything was fine - I used ajax calls to get data from server, server was connected to sqlite database and everything worked.
Now, I'm deeply confused and have no idea how to connect webapp scaffolded by yeoman and angular with my sqlite db. I know that yeoman is built on node.js but I'm not sure what should I do to get working server side.
I know that this question is more about architecture but I was not able find on the internet how to connect this two technologies: yeoman (with angular) and sqlite database.
What should I use?
Angular is a front-end framework. You must have a back-end server to communicate to your database. You talk to it with Angular via a RESTful service using $resource or $http or some 3rd party library like RestAngular.

Azure Web Site with Push notifications

I'm trying to develop a Windows Phone 8 app. I've created a Web Site in a Windows Azure account which is an MVC 4 project with REST endpoints. I've got an SQL database in Azure to store data from the Azure Web Site. Ocassionaly, I want my application to send PUSH notifications to mobile phones. So I've created a Mobile Service and I've linked the SQL database with the Mobile Service's database in order to have got the same data for the web page and the service.
I though that when I send an HTTP POST to the web site, the script in the database from the Azure Mobile Service would be launched but it looks not to be true. Isn't it? Because of that, I would write in the controller of an HTTP POST endpoint the code to send the data to the Mobile Service endpoint in order to launch the JavaScript code to send the Push Notification.
Is that the right approach for my goal? Is there any way for sending PUSH notifications from an Azure Web Site or it is only allowed from a Mobile Service?
My last question: Do you know any books or blogs about development in Windows Azure? On the Internet there is lots of documentation but principally those are get started tutorials. I've read some books but those are really complex, boring, and not really practical.
As your website MVC4 based and is running on Windows Azure using SQL Database as backend, I will guess that it is based on ASP.NET and i will write my suggestion based on that.
Now about your question "Is there any way for sending PUSH notifications from a Azure Web Site or it is only allowed from a Mobile Service?" I would say, Azure Mobile web services are designed for the same purpose for any service running on Windows Azure to send push notification on multiple of platforms. Application developer can choose to use Mobile Services to expedite their development as well as have multiple application using the one single service for such objective.
However as you mentioned "Is there any way for sending PUSH notifications from a Azure Web Site" this is not depend on "Azure web sites" instead it is depend on what development technology you are using with your Windows Azure Application. For example in ASP.NET your can use SignalR implementation if your application is based on Java, PHP, Python, Node,js etc then you can find some other run time specific real time implementation. If you look around for websockets you will find implementation in almost every popular language or look for comet programming on this regard. Not only that you can use some of the popular 3rd party applications for this purpose as well. i.e. pusher or any other.
While Windows Azure Mobile Services will give you the best results on Windows Azure platform as it is designed to provide such specific functionality for applications running on it.
Recently released: Azure Notification Hub
http://msdn.microsoft.com/en-us/library/windowsazure/jj927170.aspx

Using Google App Engine Proxy server to fetch RestFull webservices

Hi im new to Google App Engine and I am trying to create a proxy server who can return RestFull data like xml and json responses from a remote server.
I want the webservices to answer requests from only a single IP adress and that's why i want to create a proxy server with Google App Engine. I tried that solution
But the remote calls to my Google App Server are Asynchronous so by the time the webservices answer to my Google App server, the Google App Server have already answer requests of my devices which have no data in it.
I have tried many solutions with python but i am not able to make them work.
If you have any questions, let me know
Thanks,
Finally It's seems there is no way to make synchronous remote calls from the client side on the server side of the Google Apps Engine. So I tryed curl on php and it works perfecly!
Here the StackOverflow post that helped me out How can I send SOAP XML via Curl and PHP?

Resources