brandonvilla21 / e-commerce-application Goto Github PK
View Code? Open in Web Editor NEWAn e commerce front end application build with: React + Next.js + TypeScript + Apollo Server
An e commerce front end application build with: React + Next.js + TypeScript + Apollo Server
This is an exctract of the LoginForm component (has been simplified) and where should be placed the Spinner component. Suggestions on how to handle the loading differently are welcomed ๐ฆ
<Mutation>
{(login, { error, data, loading }) => (
<form>
{loading && <code>Spinner will mount here..</code>}
</form>
)}
</Mutation>
You'd better be in touch with whoever works on this as well #8 just to coordinate
We're going to be using react-testing-library along with Jest for unit and integration testing.
Resources:
Depends on: marcos8896/base-e-commerce-api#13
Redirect in Next.js is different than a conventional React applicacion with React router. Here are some resources:
The ideal workflow would be to let the Login page know when the LoginForm has submitted the information and has a response (error or success)
You will need to create the page that you want to redirect (maybe we need to discuss this as a team to what page will be the initial page once the user logs in)
Depends on: marcos8896/base-e-commerce-api#17
Material Drawer component: https://material-ui.com/demos/drawers/
This is a setup example but can be more and better examples out there
Set the first Mutation to the GraphQL server by login and making sure the token is set in cookies
Official documentation to make the migration: https://material-ui.com/guides/migration-v3/
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.