D
D
DIMANVAZ2021-02-27 11:59:58
CMS
DIMANVAZ, 2021-02-27 11:59:58

Is it possible to have a review site without a server in Node (HTML+CSS+JS only)?

Good afternoon.
I decided to make a simple review site in: the user sees an empty form and below the already published reviews of other people. So far, only text. The user fills out the form, clicks Submit and his review appears on the site.
The question is this: is it possible to implement the storage and modification of the content (well, that is, the file in which the published reviews are) without using a server?
Well, i.e. just an independent site that changes itself (HTML \ CSS + included JS script).
What if, for example, reviews are written to an array of objects in a JS file?
Do not throw slippers, I'm learning!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
abberati, 2021-02-27
@abberati

This is possible in today's world. Although you can’t do without a backend, you don’t have to write it yourself. The described task is quite simply solved using, for example, firebase from Google (or analogues)

S
Sanes, 2021-02-27
@Sanes

No.

M
mikes, 2021-02-27
@mikes

js is executed on the client, so it cannot write HTML that is stored on the server.
Of course, you can make a crutch and write in js which thread the WebDAV client and write to the server, etc. But it's not worth it.
So php for example will help you

S
SKEPTIC, 2021-02-27
@pro100chel

That it is direct files to change - no.
If you use ajax or something like that, then you can store reviews without a server.
For example, use cloud platforms like yandex cloud, gcp, azure, aws.
Each has all sorts of serverless, databases and api constructors

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question