This project was bootstrapped with Create React App.
Follow these steps to set up and run the project locally.
Ensure you have the following installed on your system:
in .env file of frontend code make following changes :-
REACT_APP_API_URL=http://webserverpublicIP:5000
- Node.js (LTS version recommended)
- npm (Comes with Node.js)
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install -y nodejs
- Clone the repository:
git clone https://github.com/your-username/GroceryAppFE.git cd GroceryAppFE npm install npm install dotenv npm start
npm run build //to build you fe
npm install
npm run build
pm2 list
pm2 serve build/ 3000 --name "grocery-frontend" --spa