/React-Recipe-App-CodeGym

Built this react mobile app for World Code Gym hosted on talent.social

Primary LanguageJavaScript

Mainou's Recipe Lab- Made for World Code Gym Hackathon

Mobile Web Application. (PWA)

Uses React + Redux for the frontend. Also has a backend create on PHP, hit via an API.

App Video

Technologies Used:

This Mobile web app is mainly designed for mobile devices. Frontend:

  1. React
  2. Redux
  3. JSX

Backend:

  1. PHP
  2. MYSQL

Features:

  1. Live Search
  2. Add Recipe
  3. See Ingredients and qyantity on the card itself
  4. Add Image using camera or gallery
  5. Web Caching and PWA (Progressive Web application): Works without internet as well.

Images

  1. Homescreen 2)Capture for food image 3)Live Search 4)Add new Recipe

How to Run this React Web App

To run the most optimized build of the app.

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

Backend Server

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.

Available Scripts

In the project directory, you can run:

npm start

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.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.