14nrv / buefy-shop Goto Github PK
View Code? Open in Web Editor NEWA sample shop built with Nuxt, Stripe, Firebase and Serverless Functions
Home Page: https://buefy-shop-pi.vercel.app/
License: MIT License
A sample shop built with Nuxt, Stripe, Firebase and Serverless Functions
Home Page: https://buefy-shop-pi.vercel.app/
License: MIT License
Hey cool project,
Hoping someone can help me
Where does it pull in the products from and how,
Where does it process the stripe charge,
Do you have a copy of the firebase function for the stripe backend?
cheers
Hi,
When trying to run this project, I am passing in the config, but firebase seems to think it is undefined. However, when I log the config object, I can see that it has the values and is being passed to firebase.initializeApp
Do you have any idea why this could be?
Line 16 in ea1b2c6
just guessing that this is correct that way: '\\.(css|style)$': 'identity-obj-proxy' ?
The setup is not so easy. after hours it running.
But the Cart-Parge with the stripe elements will not render.
So my Questions:
Thx, André
Can it be updated? We can't see the website:
This deployment is no longer available.
ZEIT Now 1.0 has been shut down. As part of this, all ZEIT Now 1.0 Deployments are now inaccessible.
or only server?
# generate static project
$ yarn generate
no load site
Failed to load resource: the server responded with a status of 404 (Not Found)
default.a96880bbdce058c36780.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
index.38ecd1d8cc540867d916.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
vendor.af455663322d43c761ca.js:2 Uncaught ReferenceError: webpackJsonp is not defined
at vendor.af455663322d43c761ca.js:2
/_nuxt/pages/cart.cb9d77bc8b737b20f637.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/_nuxt/pages/products/_slug.2f60c7f50f33d08c1cd7.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
app.c6f756e5d178a57112dc.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/_nuxt/pages/uslugi.2652f535c873a52c80d9.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
logo.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Hi, did you ever tried to handle 3D Secure cards with Stripe? I'm trying to do it but it seems really complex
Hola @14nrv,
after upstream update the test almost runs fine, execept the firebase URL determination.
silvans-macbook-pro:buefy-shop silvan$ git commit -m "update from upstream and firebase deploy modifications"
✔ Running tasks for *.js
✔ Running tasks for *.vue
FAIL __tests__/components/Header.spec.js
● Test suite failed to run
FIREBASE FATAL ERROR: Can't determine Firebase Database URL. Be sure to include databaseURL option when calling firebase.initializeApp().
at fatal (node_modules/@firebase/database/dist/index.node.cjs.js:335:11)
at RepoManager.Object.<anonymous>.RepoManager.databaseFromApp (node_modules/@firebase/database/dist/index.node.cjs.js:14987:13)
at Object.instance.INTERNAL.registerService.Reference [as database] (node_modules/@firebase/database/dist/index.node.cjs.js:15526:130)
at FirebaseAppImpl.Object.<anonymous>.FirebaseAppImpl._getService (node_modules/@firebase/app/dist/index.cjs.js:134:66)
at FirebaseAppImpl.(anonymous function) [as database] (node_modules/@firebase/app/dist/index.cjs.js:323:31)
at Object.<anonymous> (plugins/firebase.js:24:22)
at Object.<anonymous> (store/modules/product/actions.js:9:17)
at Object.<anonymous> (store/modules/product/index.js:19:16)
at Object.<anonymous> (__tests__/__mocks__/fakeStore.js:17:16)
at Object.<anonymous> (__tests__/components/Header.spec.js:13:18)
If i see the __tests__/__mocks__/products.json
i guess this should be the DB used by fakestore.js for testing, or?
First of all, thank you for your cool usage example.
if i use .now-secrets.json
file it didn´t work, with .env file it is working almost (no errors, no products)
Everthing works fine in dev mode locally, but somehow i didn´t get products from my firebase realtime DB.
I imported the tests/mocks/products.json to my firebase relatime DB.
Here is the deployed example from your application:
https://testshop-buefy.firebaseapp.com/
Usally there shouldn´t be an .env file needed, correct?
Do you have an idea why no products and no errors are shown?
Best Regards from Basel
I have cloned buefy-shop
for study purposes, but I didn't find instructions about how to populate my database. How can I do it? There is some way to import on firebase the database structure and some fake data to test on dev env? And how about product env? How should it work?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.