Skip to content

Mayar-Elabbasy/Amazon-E-Commerce-Cloud-Functions-for-Firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon-E-Commerce-Cloud-Functions-for-Firebase

This repo mainly contain a simple implementation for creating payments intends through

N|Stripe

and using

N|Stripe

To serve the back-end for payments Feature for the following Repo Amazon-E-Commerce-using-React

Prerequisites

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
  },
2. To use Firebase cloud Functions, you need to install Firebase command line tools using npm

Install Firebase tools:

npm install -g firebase-tools

Installation

  1. Download the code as ZIP OR Clone the project
    git clone https://github.com/Mayar-Elabbasy/Amazon-E-Commerce-Cloud-Functions-for-Firebase.git
  2. cd into the project.
    cd Amazon-E-Commerce-Cloud-Functions-for-Firebase
  3. cd into the functions directory
    cd functions/ 
  4. 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
  5. You are ready to go and having everything done by doing the final step to run
    firebase emulators:start
    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.

Author

Mayar Elabbasy

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Releases

No releases published

Packages

No packages published