Welcome to https://ledgerely.com
- npm install --legacy-peer-deps
Proxy server setup for api in localhost
- Open /awzy-cms/nginx/conf/nginx.conf to change proxy_pass settings in line
- Update package.json - Change/Add proxy: http://localhost:5001
- complete the setup in nginx.conf file
- Open nginx folder and run nginx.exe
- To stop / reload server - Open task manager to delete your nginx instance and run nginx.exe to restart
- Check you have installed nginx (Homebrew)
- Run "vim /usr/local/etc/nginx/nginx.conf" in terminal
- :wq command to save and exit
- Copy /awzy-cms/nginx/conf/nginx.conf content with neccessary setup and paste it in "/usr/local/etc/nginx/nginx.conf" In terminal run,
- sudo brew services start nginx (Start nginx)
- sudo brew services restart nginx (Restart nginx)
- sudo brew services stop nginx (Stop nginx)
- Update .env file - Change REACT_APP_LOCALHOST_BASE_URL to http://localhost:5002/moneyPlanner/services
- Dont forget to update package.json proxy property
- In line 11 Change listen 5001 to 5002
- Restart nginx
- Browse awzy in http://localhost:5002, as you have changed the port settings to 5002
set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
-- npm start
- Node version: V14.17.2
- npm version: V6.14.15
- react-router-dom: V5.1.2
- Codeigniter - V2
- PhP - V7.3 (Please dont upgrade as PhP8 does not support mysqli_query)
- run "npm run build" in your root folder
- Dont forget to commit and push the entire files (including build folder) to repo
- Open Git version control in cPanel
- Click Manage on "moneyPlanner"
- Click "Pull or Deploy"
- Click "Update from Remote" and "Deploy HEAD Commit"
- You are done.
Author: Bharani Palani | tp.bharani@gmail.com | https://bharani.tech