My objective in building this project was to learn how to send requests to servers and handle the response.
Food Order App is a single-page application for ordering meals developed with react. I found this project in an online course, but since I added a quite few own solutions, (configure inputs, form validation, making responsible, etc...) and I also have a version without the HTTP requests which is 100% my code, I find it ethically acceptable to include this project in my repo. You can check my base version here: Base version
- Render a list of meals with the data fetched from the database
- Add selected items and quantities to the cart
- Modify items in the cart and calculate the total amount
- Validate order form field
- Send order data to the server
This project helped me improve my skills in multiple areas.
- I got more experience with sending and handling HTTP requests
- Using React.js hooks, but especially the useContext hook
- Creating factory functions and admiring their beauty :)
- I also learned a little bit about firebase
The project was inspired by Maximilian