Coder Social home page Coder Social logo

carlos-serfe / spree_legacy_frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spree/spree_rails_frontend

0.0 0.0 0.0 107.45 MB

Legacy Spree Rails storefront

Home Page: https://spreecommerce.org

License: BSD 3-Clause "New" or "Revised" License

JavaScript 12.88% Ruby 45.82% CSS 0.02% HTML 22.65% SCSS 18.63%

spree_legacy_frontend's Introduction

Spree (Legacy) Frontend

This is the old Spree Storefront extracted from Spree < 4.3 which was upgraded to Turbo/Hotwire.

Developed by

Vendo

All-in-one platform for all your Marketplace and B2B eCommerce needs. Start your 30-day free trial

Installation

Add

gem 'spree_frontend'

to your Gemfile, making sure that the spree_frontend gem is before spree_auth_devise.

Make sure both gem 'jsbundling-rails' and gem 'turbo-rails' are added as well.

Run:

bundle install
bin/rails javascript:install:esbuild
bin/rails turbo:install
bin/rails g spree:frontend:install
yarn build

Troubleshooting

Disabled 'Add to Cart' Button Issue

If you notice that the 'Add to Cart' button is disabled on product pages, try the following:

  • run yarn build again in your main repo
  • if that doesn't fix the issue, try running the following setup commands again:
    bin/rails javascript:install:esbuild
    bin/rails turbo:install
    bin/rails g spree:frontend:install
    yarn build
    

This issue may come up if you switch the source of your spree_frontend in your Gemfile, e.g. from github to a local path, etc.

Checkout without logging in results in 500 error

When you navigate to checkout without logging in first, you may get a a 500 error notifying you that "yourdomain.com redirected you too many times."

This error results from the routes defined in spree_frontend and spree_auth_devise not being built in the correct order. Make sure the spree_frontend gem is listed before spree_auth_devise in your main project's gemfile, then try again.

Running Tests

In order to generate the dummy app required for running tests, you’ll need to have the following installed on your machine:

  • node v16.13.1 (npm v8.1.2)
  • yarn ≥ v1.22.15
  • ruby v3.0.3

To run tests locally, first run bundle exec rake test_app, then bundle exec rspec.

Troubleshooting

If you are running on a Mac with an M1 processor, you may run into the following error when running tests:

Webdrivers::NetworkError:
Net::HTTPServerException: 404 "Not Found"

If so, update your gemfile locally to get version 5.0 or higher for the web drivers gem:

gem 'webdrivers', '~> 5.0'

Maintanence policy

This gem is in maintainence mode.

We only accept bug fixes, Spree/Rails compatibility improvements & security patches.

For new project we recommend using Storefront API to create your own unique storefront or use one of the pre-built starters:

Customization

Developer documentation

spree_legacy_frontend's People

Contributors

radar avatar damianlegawiec avatar schof avatar matthewkennedy avatar bdq avatar huoxito avatar romul avatar lbrapid avatar bbonislawski avatar paulcc avatar danabrit avatar peterberkenbosch avatar jdutil avatar cmar avatar aplegatt avatar reinaris avatar geekoncoffee avatar pszyszkaspark avatar mafi88 avatar benmorganio avatar tanmay3011 avatar aleksandrakaminska avatar priyank-gupta avatar mauazua avatar davidnorth avatar jhawthorn avatar krzysiek1507 avatar nishant-cyro avatar parndt avatar przemosk avatar

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.