You can use this Angular example project to follow these blog posts:
The example includes a products.json
file in the assets folder that you can use as a template for your own products and import it to Firebase Realtime Database.
To test this example you have to:
- Run
npm install
- Add your Snipcart test API key in the
index.html
file - Create a Firebase project and enable the Realtime Database
- Optionally, edit the
products.json
file to include your own products - Import the
products.json
file in the Realtime Database - Change the
productsUrl
property inside theapp.component.ts
file to your own RTDB products path - Add your website domain and your RTDB products path to the trusted domains in the Snipcart Dashboard
- Run the Angular project
For a more detailed explanation please check out one of the blog posts mentioned above.