To serve the back-end for payments Feature for the following Repo Amazon-E-Commerce-using-React
1. You should have node installed If you don't have it, install node
from here
NOTE: I am using version 14, but you are free to choose a higher version
If you don't know what is the exact version you are having, run the following command
node --version
and don't forget to update the version on the package.json
file I am going to talk about this file in the next section, but if you are familiar with it, you are going to change the following code with your current version
"engines": {
"node": "14" // change this number with your current version of node
},
Install Firebase tools:
npm install -g firebase-tools
- Download the code as ZIP OR Clone the project
git clone https://github.com/Mayar-Elabbasy/Amazon-E-Commerce-Cloud-Functions-for-Firebase.git
- cd into the project.
cd Amazon-E-Commerce-Cloud-Functions-for-Firebase
- cd into the functions directory
cd functions/
- Run this following command to add all the dependencies included in the
package.json
file --> It is a file that holds the metadata relevant to the project, and it is used for managing the project's dependencies, scripts, version and a lot more.npm install
- You are ready to go and having everything done by doing the final step to run
Congratulations, by running the last command, you now have All emulators ready! It is now safe to connect your app. You can View Emulator UI at http://localhost:4000 and mentor everything, OR go directly to the following link: Functions emulator --> http://localhost:4000/logs?q=metadata.emulator.name%3D%22functions%22.
firebase emulators:start
Mayar Elabbasy
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.