Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
damianlegawiec committed Mar 1, 2024
1 parent b7f4b38 commit 8b62fc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 36 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ end
platforms :ruby do
if ENV['DB'] == 'mysql'
gem 'mysql2'
elsif ENV['DB'] == 'postgresql'
elsif ENV['DB'] == 'postgres'
gem 'pg'
else
gem 'sqlite3'
Expand Down Expand Up @@ -62,7 +62,7 @@ group :development do
end


spree_opts = { github: 'spree/spree', branch: 'main' }
spree_opts = { path: '../spree' }
gem 'spree_core', spree_opts
gem 'spree_api', spree_opts
gemspec
35 changes: 1 addition & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Spree Admin Dashboard

This is the default Spree Admin Dashboard.
This is the default Spree Admin Dashboard.

## Developed by

Expand Down Expand Up @@ -51,39 +51,6 @@ Spree Admin Dashboard is an open source project and we love contributions in any

Please review the [Spree Contributing Guide](https://dev-docs.spreecommerce.org/contributing/index)

### Development Setup (JavaScript)

When working on the JavaScript in Spree Dashboard locally, you will need to yarn link your local development copy of `@spree/dashboard`, to the Rails app you are working in, so that your changes are picked up and represented live in the view.


From the root of `spree_backend` run:

```bash
yarn link
```

Next, from the root of the Rails app you are using to develop run:

```bash
yarn link "@spree/dashboard"
```

Once your local Spree Dashboard is linked with the Rails app you are using for development you will need two terminal tabs open,
one at the root of your Rails app, and one at the root of `spree_backend`.

In the terminal window at the root of the `spree_backend` run:

```bash
yarn watch
```

And from the Rails app you are using to run Spree and develop in run the following:

```bash
bin/dev
```
Any changes made to the JavaScript files in `spree_backend` will be processed by yarn and picked up in the Rails app you are running for development.

### Local setup

1. Fork it!
Expand Down

0 comments on commit 8b62fc5

Please sign in to comment.