How to configure spree-commerce?

I installed Spree on a Windows machine, added sample data and gained access to the administrator.

But what now?

How to create a new page or URL?

I do not see any controllers or files in the rails project folder. Do I need to change the place where the Spree program loads?

+4
source share
1 answer

But what now?

Spree is "developer friendly", which means you will need to use the thinking of developers when creating your application. To create a new page, you will need to follow the Rails-Way. If you run bin/rake routes, you will see all the routes you created.

Spree, - spree.root_path. , main_app.root_path. , , , Spree.

: http://blog.benmorgan.io/post/102924399166/customizing-spree-some-best-practices. ( Spree).

rails. , ?

Bundler Spree, rvm rbenv . , , :

gem 'spree', github: 'spree', branch: '3-0-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'

Solidus, Spree; Spree .

:

  • Spree Frontend. , , . Spree::Order . Spree::Order.next!, . , order.contents.add Spree::Variant.first, 1, .
  • . Spree, , ~ 4 . 1 (), 1 (frontend), 1 (backend) 1 API.
  • API V2. Spree 4 API, JSON API Ember. . JSON API. API Spree V2 .
+3

Source: https://habr.com/ru/post/1611082/


All Articles