aniketdgiri / foodmart-app Goto Github PK
View Code? Open in Web Editor NEWThis is the Food Mart for ordering the Food.
This is the Food Mart for ordering the Food.
Below are the requirements that need to be addressed:
Since, with our current implementation, we are making Axios calls, at each render page, whenever required, but in case if we are required to make a change in the application, for our calls, we need to change it everywhere, and this can lead to a discrepancy.
So, what we want is to create a separate file, we want to provide a common change.
Currently, we are implementing the search operation using the JSON server, so there it provides us with the functionality of the searching out-of-the-box, but when we implement the API with the filtering mechanism, we need to take care of this as well.
Requirements:
Requirements:
After clicking on add button, and then routing to another page, and thus coming back to the /products route, the button again goes to add button.
It should persist its state, even after login it from another route
There should be a feature implemented that should dynamically change the title of the window tab based on the route change
Currently, we are using Axios calls directly inside the react component only, which is accepted, but we can make use of the loader and make it more dynamic based on the time for the API call.
We need to make changes for /products and /products/:id
Current Implementation:
const [productDetail, setProductDetail] = useState({});
const productId = params.productId;
console.log(productId);
const getProductDetails = useCallback(async () => {
const res = await axios({
method: "get",
url: `http://localhost:8000/products/${productId}`,
});
setProductDetail(res.data);
}, [productId]);
useEffect(() => {
getProductDetails();
}, [getProductDetails]);
Tasks:
When we click on the user icon button, the dropdown should get popped, but once clicking outside of it it should get hidden automatically.
Tasks:
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.