A
A
AlllLllA2021-10-22 16:29:36
React
AlllLllA, 2021-10-22 16:29:36

How to put a site on react on hosting?

There is a ready-made site written in react, there is also a server in PHP (separately), which is connected to the database on PhpMyAdmin, the site is completely ready and functions on the local server, how can I transfer it to the hosting now? When I didn’t write in React, I just transferred the site to wordpress and that’s it, but now there are a lot of files, and in addition to the frontend part, there is also a server part with a database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-10-22
@Aetae

You just put the files in some thread daddy and set your server on it. A built application is just static: html, css and js.
The only thing is, if you use a route with a history api, you need to add a rule to rewrite everything that is not api on index.html.
How to do this for your server google for "<server name> spa"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question