Deploying app with python backend and Angular frontend on GAE - python

For a college project, I'm developing a RESTful API. The API has been coded in python and deployed with the Google App Engine (which works fine).
I've developped an Angular (5) application as the frontend which makes HTTP requests to that API.
The question is - how do I deploy both backend and frontend on the same Google App Engine project? Am I supposed to merge both directories (python and Angular apps) and deploy the whole thing directly?

Related

How we can deploy a Flask + React Application to Azure?

I want to create a machine learning app with Flask as backend and keep React JS as the front-end. Though I found couple of tutorials how to do that but there are very few in terms of deployment. I want to deploy and host a Flask+ReactJS app to Azure cloud. Is there any good tutorial or link which I can follow. I have been struggling for days now.
Thanks
To achieve the above requirement you can find the below mentioned sample resource to create and host flask and react app in AZURE.
To do that we will need to setup the flask app as backend and then React app.
Please refer this BLOG for complete setup to build.
For more information you can refer the below links:-
SO THREAD: How to deploy a Flask+React application to Azure Web Service
BLOG:- Deploy your Flask app on Azure & How to automate Python/Flask deployment to Azure App Service

Deploying React - django apps on Azure web apps

Locally, I am able to run my django app and react app.
I migrated the django app to the azure web apps.
My question is, what is best practice regarding connecting the react app to the django app. Should I start another web app instance, or should I try to run both on the same instance?
The easiest way is that both React and Django are deployed on the same instance, however it depends on your need.
There are many ways to deploy Django + React, I will mentioned only two:
Simple one: Just import react libraries into your Django template and deploy your Django on the instance as a normal Django project. You may refer to this tutorial on how to accomplish this: Add React to Django Template
Second way which I would recommend: Deploy Django and React separately. Django app to be deployed on the Azure instance and react to be deployed as a static website on Azure Blob storage (You may refer to this tutorial: Host React on Azure Blob). In this case, your react app will be using the Django exposed APIs (through Django DRF). You may refer to this tutorial for further details: Deploy React + Django

How to access local file system through flask RESTful API deployed in Google App Engine

I have developed a Flask RESTful API and deployed in Google App Engine. API's endpoint parameter is the folder path.I can not figure out that how my RESTful API will access my local file system.

How can a Qt/Qml app authenticate to GAE flask app?

I recently wrote a simple Google App Engine app using flask web framework. I used flask-login and flask-restful libraries to handle authentication and provide a simple RESTful api for the app. My next step is to have a Qt/Qml app login to the GAE app and have it use the REST api I created. The app is written in Qt 5.4 and runs on multiple desktop and mobile platforms. I tried using Qml WebView with Qt 5.4 to see if I could get authentication to happen successfully and then use the cookie produced during authentication to make RESTful calls from a separate network connection using QNetworkAccessManager. This never worked as I was unable to get the cookies from WebView. I am at a bit of a loss of how else I could do this? Thanks!

Is Google App Engine's Webapp Framework Open Source? Is it available outside GAE?

Google App Engine includes this minimal framework called "webapp". Google Code does not list a project page for webapp. The only documentation/information from Google on webapp is in the Google App Engine documentation. Is webapp not usable outside GAE?
You could use webapp outside App Engine - there's very little that's App Engine specific - but it's not designed for it, and thus isn't packaged or documented separately. If you want a webapp-like framework you can use anywhere, check out webapp2. It's a very close copy of webapp, with a lot of improvements and extensions. In fact, we (the App Engine team) like it so much it's the official replacement for Webapp on the Python 2.7 platform!

Categories

Resources