chat web app that allows sending messages [closed] - python

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am learning Flask and I want to practice by making simple web app.
I want to make a chat web app that allows sending messages between two or more web browsers in Flask but I am not sure where to start or go about building this application. This question is pretty broad but what I want to know is how to structure this application. What are the pieces I need to build this application.

very broad question, but I'd recommend starting here with web sockets http://blog.miguelgrinberg.com/post/easy-websockets-with-flask-and-gevent . Then you can have two member subscribe to a channel and make messages to each other.

Related

How to serve a Flutter web app using Django? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
After building a flutter web app with
flutter build web
I want to deploy this with dango server, what should i do?
I'm assuming that your backend is an API Rest and does not render the HTML.
The "right" way will be to have a service for the SPA, and another for the API. For example, with docker, droplets, kubernetes, DO and Heroku.
Another way that I'm thinking is... you specified a route (like example.com/) to serve the flutter web project (I mean the HTML), and the other routes can be the endpoints.

How can I turn my python script into a web app? I have a scraper that takes an input and displays an output, so I'd like that to be the web app [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
essentially i have a python script that takes an input from the user, and scrapes the relevant data and outputs it. I thought it'd be neat to turn this into a web app, where should i start?
You need to use some frameworks such as Flask or Django.
I wrote a small program which automates the process for simple scripts.
https://github.com/bkb3/py2webapp

Web development for smart switches IoT [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have many jinvoo light switches in my house. I control them from the app in my cell or using alexa echo gen 3 and everything works perfect.
Now I am trying to create a local web page that allows me to know the status and to interact with the switches.
I have been looking an api and found nothing. I also thought about creating an Alexa skill to interact with my page or to use and arduino ESP8266.
Any suggestion will be appreciated.
If you know how to control them from a skill, you can create custom tasks for different operations within a skill, then trigger them using Quick Links for Alexa.
Custom tasks: https://developer.amazon.com/en-US/docs/alexa/custom-skills/implement-custom-tasks-in-your-skill.html
Link to custom tasks from a web page: https://developer.amazon.com/en-US/docs/alexa/custom-skills/create-a-quick-link-for-your-custom-task.html#

What are the application and request contexts? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm new to Flask but have experience with PHP. I know there are session variables and global variables just as in PHP, but what do the contexts actually mean? I read the documentation but could not understand whet it was saying.
What are the application and request contexts, and what the is app.app_context()?
app.app_context loads the application and any extentions you have loaded.
A request context is loaded when you are dealing with a request.
A good example.
If you have a background cron that does some database work, you'll need to make use of app_context to get access to the models.
You'll be a in request context pretty much whenever you're handling a view.

How can I create a client side database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
How can I create a client side database to store information of users on client side. Does anybody know of any tutorials or pointers? Which is the recommended database to use? My client is in .js and uses Django framework.
What you are asking for is called Web Storage and is part of HTML5.
http://diveintohtml5.info/storage.html
http://www.gwtproject.org/doc/latest/DevGuideHtml5Storage.html
However, many times when people SAY they need a client-side database, I ask them the details and it turns out that they don't really need client side storage at all, so proceed with caution.

Categories

Resources