Online burger ordering app created with React.
View Demo
https://react-xburger.web.app/
Table of Contents
This was created while learning React.js from a Udemy course (React - The Complete Guide (incl Hooks, React Router, Redux).
I have learned:
- React JSX
- Class and function components
- Lifecycle methods
- React Router
- React Hooks
- Redux
- Jest
- Enzyme
- npm
npm install npm@latest -g
- Get a free API Key for Firebase authentication.
- Clone the repo
git clone https://github.com/iamsanjaymalakar/react-xburger.git
- Install NPM packages
npm install
- Setup your firebase authentication API key in file
src/store/actions/auth.js
.const API_KEY = 'FIREBASE_AUTH_API_KEY';
- Setup your firebase database URL in
src/axios-orders.js
/. Store a JSON in your database with keyingredients
."ingredients" = { "bacon":0, "cheese":0, "meat":1, "salad":0 }
- Firebase database rules:
{ "rules": { "ingredients": { ".read": "true", ".write": "true" }, "orders": { ".read": "auth != null", ".write": "auth != null", ".indexOn" : ["userId"] } }
- Run the project using npm.
npm start
Sanjay Malakar - @19malakar - [email protected]
Project Link: https://github.com/iamsanjaymalakar/react-xburger