O
O
Onefurniture2018-06-10 15:40:06
Django
Onefurniture, 2018-06-10 15:40:06

What is the order of developing a Python+Django+Vue+bootstrap service?

set a test task:
1) on the python + django server
2) on the vue.js client and bootstrap
1) on the server there is a database, each record of which consists of a message, date and flag-read.
2) on the client, this database is polled every ten seconds and if there are new messages, then it is displayed in the body of the vue component
with a python sign, in django, vue, bootstrap zero
Advise the ORDER of developing such a service. (this is the main question)
What to install from development environments on a PC, is sublime enough? (I have lubunta)
The system is almost clean, is it worth bothering with virtual environments?
Is it possible to do without installing libraries on a PC?
Thinking of using heroku as a server and mongodb as a db?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Web Dentist, 2018-06-10
@Onefurniture

At the expense of the IDE - enough, but at least a notepad.
Order.
1. Create a django application.
2. Create a vue application.
3. Throw in html.
4. Create a message model.
5. Write an API in DRF .
6. Then use vue to make requests to the server and pull messages.
It is recommended to create a separate environment for each project.
At the expense of the database, use sqlite, don't worry.
Hosting of your choice Heroku , Pythonanywhere etc.
Tutorial 1.
Tutorial 2.

K
Konstantin Malyarov, 2018-06-10
@Konstantin18ko

I use the same bundle, only NodeJS - raised WebSocketServer.
And when a request for NodeJS comes in, VueJS through axios (you can use vue-resource) makes a request through DRF.
What is the advantage of my method: the query goes to the database only when a message arrives, and not every 10 seconds.
PS Imagine every 10 seconds 15'000 users make 15'000 requests. Doubtful pleasure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question