Ссылка на уже развернутый APP http://90.188.237.123:5556
В промышленном:
git clone https://github.com/malinichev/api-serv-node10-sqlite.git
cd ./api-serv-node10-sqlite/react-app
npm i
npm run-script build
cd ..
npm i
pm2 start app.js --watch
PORT=5557 node app.js или так
в отладочном режиме, надо выполнить
git clone https://github.com/malinichev/api-serv-node10-sqlite.git
nano ./api-serv-node10-sqlite/react-app/src/api/index.js
Отредактировать там index.js
let axiosInstance = axios.create({
baseURL: './api', <---------------путь поменять на http://<путь к вашему сайту>:3001/api
cd ./api-serv-node10-sqlite/react-app
npm i
npm start
cd ..
npm i
PORT=3001 node app.js