lijinpro Goto Github PK
Type: User
Type: User
A small application showing how to write a custom hook to help us fetch data
We are starting our Graphql implementation lesson! In this lesson, we are starting from a state of our application where we don't have sagas but are leveraging redux for local state storage.
We have converted over a few components to leverage the apollo clients local storage capabilities, use this project as the starting point for converting the remaining components over to using Apollo-clients local storage!
The final version of our application after converting it to leverage apollo-client for handling local state. *One thing to note is that in checkout-item.container we use something new, the compose function and the graphql function we get from react-apollo to handle multiple mutations!
Adding email/password sign up authentication for firebase, as a result we need to store our user objects in the database.
We have added redux to our application so we can leverage all the benefits that come with uni-directional data flow. Instead of the prop drilling we would have to do in order to pass our new user object down deeper into our component trees from our app, we can now just connect those components directly to our redux store where we store all our data.
We have updated our cart redux files to handle adding an item, we have also connected it to our updated collection-item.
Now that we have created all the redux code for storing our data, now we are going to connect our items to add them to our cart.
We need to create our cart-item component for our cart and connect our cart component to our cart reducer.
We want to separate all our business logic in our selectors. In this lesson we add a new selector to show our total count of items.
Now that we have our cart, it's time to create our checkout page. We need a checkout component for the page and our checkout-item component. We're going to connect the page to our cart reducer; we're also going to make a selector to get the total price.
Creating our first component, homepage and adding scss to help us with writing our styles
We want to be able to remove the item from the cart if the user doesn't want it anymore during checkout so we're going to add the appropriate action and case in our cart reducer.
We also want to be able to update the quantity using buttons to the left and right of the number, so we will add the appropriate code to do so.
We don't want our users to lose their carts whenever they refresh, so we are going to leverage one of the benefits of redux by persisting our store object in localstorage using redux-persist.
We have now created our collection page and converted our shop items data over from an array to an object to better leverage our url parameters! Converting arrays over to objects to store data is called data-normalization and it makes searching for specific elements in our code much easier and efficient!
In this section, we are going to introduce our stripe integration and create a stripe button to help us leverage the stripe checkout library. Stripe is an excellent service that allows us to massively simplify our checkout flow, which would otherwise be incredibly complicated.
In this repository, all our components have been converted to styled-components!
In this lesson we are using redux-thunk for asynchronous event handling! We have modified our collections-page collections-overview components to use the container pattern to separate their loading logic out of our shop component, and into their own isolated files.
We have added some media query styles to our styled components, try as an exercise to convert the appropriate pages to be mobile responsive!
Let's make our code mobile responsive! We wrote some media queries into the appropriate css files and now we have mobile friendly code!
Going over the concept of higher order components through use of the withRouter HOC from react-router-dom.
Create collection-preview and collection-item components for the shop page
Creating header component to demonstrate where react-router renders our content on the page using <route> component
Starting our sign in section by creating a new sign in and sign up page, as well as start creating sign in component.
Creating our firebase database and adding the firebase library into our code. Add google sign in and authentication into our application.
A complete version of our application converting everything redux over to using the contextAPI
A small project helping us understand the new useEffect hook!
A small application to help us understand the new useState hook
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.