Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

solidusio/solidus-demo

Folders and files

NameName
Last commit message
Last commit date
Dec 5, 2022
Aug 13, 2021
Nov 14, 2022
Aug 18, 2023
Jun 9, 2020
Jul 28, 2023
Jan 13, 2022
Jan 11, 2022
Mar 13, 2020
Oct 23, 2020
Sep 20, 2021
Mar 13, 2020
Apr 8, 2022
Apr 17, 2020
Jul 6, 2020
Apr 17, 2020
Jun 9, 2020
Dec 5, 2022
Dec 5, 2022
Nov 20, 2020
Jan 12, 2022
Mar 13, 2020
Mar 13, 2020
Aug 18, 2021
Mar 13, 2020
Apr 17, 2020

Repository files navigation

README

This is the repo for the Solidus Demo Site.

Running locally

After cloning the repo, cd into the folder and run the following commands:

bundle install
yarn install
rails db:create db:migrate db:seed

The app runs at http://localhost:3000. The admin interface can be accessed at http://localhost:3000/admin/.

Authentication

Currently, every request is assumed to have come from an admin user. (see lib/spree/core/controller_helpers/auth_decorator.rb for more info)

This allows access to the backend without the need to log in, allowing potential adopters to get a better look at what they'll be working with.

Deploying

demo.solidus.io auto-deploys (on Heroku) from the master branch of this repository - a few minutes after your PR is merged, you should see it reflected on the website.

Database Changes

This demo relies on the existence of a sample_indicator_id for every table in the database (except two - see more here.)

When adding new tables to the database, please make sure to also include a sample_indicator_id string, otherwise the demo might break.