Mobile Web Application. (PWA)
Uses React + Redux for the frontend. Also has a backend create on PHP, hit via an API.
This Mobile web app is mainly designed for mobile devices.
Frontend:
- React
- Redux
- JSX
Backend:
- PHP
- MYSQL
- Live Search
- Add Recipe
- See Ingredients and qyantity on the card itself
- Add Image using camera or gallery
- Web Caching and PWA (Progressive Web application): Works without internet as well.
- Homescreen 2)Capture for food image 3)Live Search 4)Add new Recipe
Run the following command from command prompt from the base folder:
serve -s build
This will run the server at http://localhost:5000
To run the development server of react Run:
npm start
This will run the server at http://localhost:3000
The backend server is build using PHP, ArrestDB and MySQl.
The server is uploaded on a different branch. Branch Name: Backend.
The database can be created using the .sql file uploaded along with the server.
Running the server is simple. Simply put the files in your WAMP or XAMPP or LAMP directory and run Apache and MYSQL.
Once done. Kindly change the api fetch address in the reactApp, in the page.js file. (\src\redux\actions\page.js)
line number 30:
return fetch(`http://49eaab7b.ngrok.io/ReactApp_API/ArrestDB/allrecipes`
This currently has my localhost's tunnel using ngrok, kindly replace this localhost api link in your system.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.