GithubHelp home page GithubHelp logo

binx / beluga Goto Github PK

View Code? Open in Web Editor NEW
306.0 306.0 45.0 1.89 MB

๐ŸŽท๐Ÿ‹ Build your own ecommerce site! https://belugajs.com

License: GNU General Public License v3.0

HTML 0.91% JavaScript 92.85% CSS 0.44% Handlebars 5.80%

beluga's People

Contributors

binx avatar dependabot[bot] avatar gabekole 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

beluga's Issues

failed to compile

build time error
./src/data/store.js
Module not found: Your application tried to access history, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.

New product button broken

I'm excited to use beluga but very discouraged as I'm not an advanced coder to solve this problem myself. Entering title allows the button to be clickable but on click, step two is not revealed. Also I assumed that beluga synced with my existing stripe product database, is this not true?

Cannot read property 'data' of null

After setting up store, I logged in as admin by visiting localhost:3000/login. As soon as I hit that route the server get stopped and throw this error

TypeError: Cannot read property 'data' of null
    at F:\web-projects\beluga\server\admin.js:26:25
    at Timeout._onTimeout (F:\web-projects\beluga\node_modules\stripe\lib\utils.js:216:33)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)

TypeError: product.details.map is not a function

Hi! No matter what I change on my listing it always goes to this error page. The rest of the website works perfect, including making the list. It's just when I try to view the listing that this error comes up. Have you seen this before? Any idea what I can do to get it working?

Thank you for the help!!

I am running Windows Server 2019, node, yarn, and git are all successfully installed and I restarted after it was done installing. Here is that rest of the error page:

TypeError: product.details.map is not a function
ProductDetails
C:/beluga/src/components/product/ProductDetails.js:139
136 |
137 | { product.details &&
138 |


139 |

    | ^ 140 | {product.details.map((detail,i) =>
    141 |
  • {detail}

  • 142 | )}
    View compiled
    โ–ผ 23 stack frames were expanded.
    renderWithHooks
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:14985
    mountIndeterminateComponent
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:17811
    beginWork
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:19049
    HTMLUnknownElement.callCallback
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:3945
    invokeGuardedCallbackDev
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:3994
    invokeGuardedCallback
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:4056
    beginWork$1
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:23964
    performUnitOfWork
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:22776
    workLoopSync
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:22707
    renderRootSync
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:22670
    performSyncWorkOnRoot
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:22293
    (anonymous function)
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:11327
    unstable_runWithPriority
    C:/beluga/node_modules/scheduler/cjs/scheduler.development.js:646
    runWithPriority$1
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:11276
    flushSyncCallbackQueueImpl
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:11322
    flushSyncCallbackQueue
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:11309
    batchedUpdates$1
    C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:22387
    notify
    C:/beluga/node_modules/react-redux/es/utils/Subscription.js:19
    Subscription.notifyNestedSubs
    C:/beluga/node_modules/react-redux/es/utils/Subscription.js:90
    Subscription.handleChangeWrapper
    C:/beluga/node_modules/react-redux/es/utils/Subscription.js:95
    dispatch
    C:/beluga/node_modules/redux/es/redux.js:222
    (anonymous function)
    C:/beluga/node_modules/redux-thunk/es/index.js:11
    (anonymous function)
    C:/beluga/node_modules/connected-react-router/esm/middleware.js:22
    โ–ฒ 23 stack frames were expanded.
    (anonymous function)
    C:/beluga/src/App.js:50
    47 | fetch('/user/')
    48 | .then(res => res.json())
    49 | .then(result => {
    50 | dispatch({ type: "SET_ADMIN", isAdmin: result.isAdmin })
    | ^ 51 | })
    52 | }, []);
    53 |
    View compiled

SEO?

Is there any reference to SEO? I might have overseen it.
Thank you

Change currency

Hi, i like your project and I was testing and i was wondering if you could explain how to change the currency.

Broken Products

When adding a product without an image or a variation, you receive a
TypeError: Cannot read properties of undefined (reading 'charAt') error.

Viewing product throws error

Hi,

After installation and config, adding a new product as well;

viewing a product is throwing an error as such:


TypeError: product.details.map is not a function
ProductDetails
src/components/product/ProductDetails.js:140
  137 | </Right>
  138 | { product.details &&
  139 |   <Details>
> 140 |     <ul>
      | ^  141 |       {product.details.map((detail,i) =>
  142 |         <li key={i}>{detail}</li>
  143 |       )}

to reproduce this error, create a product (eg slug with "asdf") and click on it on /shop,
then expect to redirect to the error page for that specific product.

eg. http://localhost:3000/product/asdf

node version: v14.0.0
Bests,
@

Order ID Undefined?

Screenshot from 2021-01-08 12-20-40

On adding an item to my cart and checking out, when I click the submit button, the order fails because an order ID is being returned as undefined. Know how I might fix this issue?

Thanks!

Admin Login Password Stored in Plain Text

The admin.js file compares input to password in plain text. req.body.password === process.env.ADMIN_PW This is a possible security issue, password should be stored as hash and /api/login should hash input server side. I'll fix this myself unless there is something I'm not aware of making my point irrelevant.

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.