GithubHelp home page GithubHelp logo

14nrv / buefy-shop Goto Github PK

View Code? Open in Web Editor NEW
260.0 15.0 85.0 1.19 MB

A sample shop built with Nuxt, Stripe, Firebase and Serverless Functions

Home Page: https://buefy-shop-pi.vercel.app/

License: MIT License

JavaScript 61.77% Vue 33.46% HTML 0.09% Stylus 4.67%
nuxt firebase stripe bulma vuex vue vue-test-utils jest circleci ecommerce

buefy-shop's People

Contributors

14nrv avatar dev7ch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

buefy-shop's Issues

Help with setup

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

firebase config undefined

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?

Setup: Will I need Firebase Function for the token -> charge?

The setup is not so easy. after hours it running.
But the Cart-Parge with the stripe elements will not render.

So my Questions:

  • We need a Firebase Function setup? if yes, how?
  • Where I type the Secretkey of Stripe?
  • What is the "STRIPE_URL"?

Thx, André

Demo unavailable

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.

This solution supports static generation?

or only server?

# generate static project
$ yarn generate

no load site

Error

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)

3D Secure

Hi, did you ever tried to handle 3D Secure cards with Stripe? I'm trying to do it but it seems really complex

Precommit testing fails due firebase determination

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?

Question: .env oder .now-secrets for sensibel data?

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

Application Data

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.