R
R
Renat Sagdeev2017-09-16 14:36:55
Node.js
Renat Sagdeev, 2017-09-16 14:36:55

Multiple scripts on one droplet?

Hello.
What I want to do Create a droplet that will

  • db(postgresql)
  • a script that runs once an hour and writes data to the database;
  • SPA based on react that takes data from the database
  • Well, maybe a simple telegram bot.

So. Tell me which direction to go. What to read? And is it possible to do all this (everything except the bot is required)? Interested in how to place all this on one server, and set it all up correctly.
According to the DO tutorials, I can run one thing. And as for the spa + script, I don’t quite understand.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Shubin, 2017-09-16
@idegree

I don't think you understand what a droplet is. A droplet is, roughly speaking, a virtual machine, even rougher - the same computer as yours. Can you run several things on your computer? So it's exactly the same there.
PostgreSQL - read about its deployment on the same DO.

a script that runs once an hour and writes data to the database
- read about crontab
SPA based on react that takes data from the database
- write a SPA, and give it to clients using any web server, for example, nginx (they wrote about its deployment on DO)
You got to the bot too early if you ask such questions. There is a database, and a web server, and the launch of the bot itself ...
According to the DO tutorials, I can run one thing. And as for the spa + script, I don’t quite understand.
It's not clear what exactly you can't do. All these things do not intersect. Do everything in sequence.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question