An E-Commerce website for ordering Pizza Online
NOTE: The features shown in the demo is not exhaustive. Only the core features are showcased in the demo.
- React: To create the Single Page App
- React-Router: For Routing
- Redux: For State Management
- Firebase: As a DataBase
You need to create a firebase configeration file holding the firebase settings in the path /src/firebase/config.js
. The required format is:
const firebaseConfig = {
apiKey: "API-KEY",
authDomain: "AUTH-DOMAIN.firebaseapp.com",
databaseURL: "DATABASE-URL.firebaseio.com",
projectId: "PROJECT-ID",
storageBucket: "STORAGE-BUCKET.appspot.com",
messagingSenderId: "MESSAGING-SENDER-ID",
appId: "APP-ID",
measurementId: "MEASUREMENT-ID",
};
export default firebaseConfig;
Data needs to be stored in the following format:
[
{
name: "CATEGORY NAME",
items: [
{
desc: "PIZZA DESCRIPTION",
id: "ID",
img: "IMAGE LINK",
name: "PIZZA NAME",
price: 100, // PRICE
},
],
},
];
An example data is given in /src/firebase/exampleData.json
To use the project follow the steps given below:
- Install the necessary modules (
npm install
). - Setup Firebase Project and configuration
- Use
npm start
to run the react app