Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/d33paks1ngh/foodiez

Foodiez is a modern food delivery application built using React. It allows users to browse a variety of restaurants, explore detailed menus, and place orders seamlessly
https://github.com/d33paks1ngh/foodiez

javascript jest-tests jsx netlify react react-router redux reduxtoolkit tailwind

Last synced: 29 days ago
JSON representation

Foodiez is a modern food delivery application built using React. It allows users to browse a variety of restaurants, explore detailed menus, and place orders seamlessly

Awesome Lists containing this project

README

        

# Parcel

- Dev Build
- Local Server
- HMR = Hot Module Replacement
(Hot Module Replacement (HMR) exchanges, adds, or removes modules
while an application is running, without a full reload)
- Uses File Watching Algorithm - written in C++
- Caching - Faster Builds
- Image Optimization
- Minification of file
- Bundling - It bundles all files into one file
- Compressing
- Consistent Hashing
- Code Splitting
- Differential Bundling - support older browsers
- Host on HTTPS
- Tree Shaking - Remove Unused code
- Different dev and production bundles
- Chunking | Code Splitting | Lazy Loading | Dynamic Bundling | On Demand Loading - Break down apps into smaller logical chunks

# Foodiez

Header

- Logo
- Nav Items
Body
- Search
- Restaurant Container - Restaurant Card - Img - Name - Star Rating, Delivery Time - Cuisines
Footer
- Copyright
- Links
- Address
- Contact

# React Hooks

(Normal JS Utility Functions)

- useState()
- useEffect()

# Redux Toolkit

- Install @reduxjs/toolkit and react-redux
- Build our store
- Connext our store to our app
- Slice (cartSlice)
- dispatch(action)
- Selector

# Types of Testing (Developer)

- Unit Testing
- Integration Testing
- End to End Testing - e2e Testing

# Setting up Testing in our App

- Install React Testing Library
- Installed Jest
- Installed Babel Dependencies
- Configure Babel
- Configure Parcel Config file to disable default Babel Transpilation
- Jest - npx jest --init
- npm install --save-dev jest-environment-jsdom
- Install @babel/preset-react to make JSX work in test cases
- Include @babel/preset-react inside my babel config
- Install @testing-library/jest-dom