This project is a simple recipe project. The project is developed with react. The aim of the project is to access the recipe by searching for the desired dish and the desired meal time. You need to be logged in to access the recipe.
The user must enter username: "name" password: "1234" to access the login page or details page: "1234".
06 - Recipe App (folder)
|
SOLUTION
βββ public
β βββ index.html
βββ src
β βββ assets
β β βββ [images]
β βββ components
β β βββ header
β β β βββ Form.jsx
β β β βββ Header.jsx
β β β βββ style.jsx
β β βββ navbar
β β βββ Navbar.jsx
β β βββ style.jsx
β βββ context
β β βββ RecipeProvider.jsx
β βββ pages
β β βββ about
β β β βββ About.jsx
β β β βββ style.jsx
β β βββ details
β β β βββ Details.jsx
β β β βββ style.jsx
β β βββ errorPage
β β β βββ NotFound.jsx
β β β βββ NotFoundStyle.jsx
β β βββ home
β β βββ Home.jsx
β β βββ RecipeCard.jsx
β β βββ style.jsx
β β βββ login
β β β βββ Login.jsx
β β β βββ style.jsx
β β βββ register
β β β βββ Register.jsx
β β β βββ Style.jsx
β βββ router
β β βββ AppRouter.jsx
β β βββ PrivateRouter.jsx
β βββ App.js
β βββ index.css
β βββ index.js
βββ .gitignore
βββ LICENSE
βββ package-lock.json
βββ package.json
βββ README.md
βββ yarn.lock
-
Step 1: Create React App using
yarn create react-app recipe-app
ornpx create-react-app recipe-app
-
Step 2: Signup
https://developer.edamam.com/edamam-docs-recipe-api
and get api key. -
Step 3 : Using api key and
axios
for getting data fromhttps://api.edamam.com/search?q=${query}&app_id=${APP_ID}&app_key=${APP_KEY}&mealType=${meal}
. -
Step 4: You are expected to code your project with styled component
-
Step 5: You can use Context API for Global State Management
-
Step 6: You can get random login background image from
https://picsum.photos/1600/900