Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .env.demo

This file was deleted.

3 changes: 0 additions & 3 deletions .env.dev

This file was deleted.

2 changes: 0 additions & 2 deletions .env.playground

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/build-deploy-dev.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/build-deploy-playground.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/build-dev.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/deploy-demo.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
.env.development.local
.env.test.local
.env.production.local
.env.dev
.env.demo
.env.playground
.idea/
.eslintcache
eslintcache
Expand Down
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ This reference app may be used as a template for building your own marketplace p
- [Design & Architecture](#design--architecture)
- [Local Development](#local-development)
- [Prerequisites](#prerequisites)
- [Configuration](#configuration)
- [Build](#build)
- [Run](#run)
- [- Note that you also need to run your own backend, configured to work with these contracts (see instructions in the reference-backend repository)](#--note-that-you-also-need-to-run-your-own-backend-configured-to-work-with-these-contracts-see-instructions-in-the-reference-backend-repository)
Expand Down Expand Up @@ -59,13 +58,6 @@ For instructions on how to get set up with these specific versions:
* See the [OS X guide](docs/setup/osx.md) if you are on a Mac.
* See the [Linux guide](docs/setup/linux.md) if you use a Linux distribution.

---
### Configuration
Prior to running the application, you must set up a `.env` file in the project's root directory with the following environment variables:
- `REACT_APP_BACKEND_BASE_URL` - This is a URL for the reference backend.
- `REACT_APP_FRONT_END_LOCALSTORAGE_VERSION` - This is the version of the local storage buster (can be defaulted to "1.0").
- `GENERATE_SOURCEMAP` - This is a boolean and can be defaulted to false.

---
### Build

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ namespace :app do
.map { |k, v| [k.to_s, v] }
.to_h

sh(environment, 'npm', 'run', 'start')
sh(environment, 'npm', 'run', 'start:local')
end

desc 'Build content for deployment identifier'
Expand Down
1 change: 0 additions & 1 deletion config/deployments/bsn-demo-copernicium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ environment: "production" # use full asset pipeline for all deployed environment
parent_role_arn: "%{hiera('bsn_parent_account_admin_role')}"

content_work_directory: "build/content/%{hiera('deployment_identifier')}"
react_app_backend_base_url: "https://reference-backend-bsn-demo-mendelevium.bsn-development-potassium.bosonprotocol.io"

parent_domain_name: "bosonprotocol.io"
primary_domain_name: "bsn-development-potassium.%{hiera('parent_domain_name')}"
Expand Down
1 change: 0 additions & 1 deletion config/deployments/bsn-development-hassium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ environment: "production" # use full asset pipeline for all deployed environment
parent_role_arn: "%{hiera('bsn_parent_account_admin_role')}"

content_work_directory: "build/content/%{hiera('deployment_identifier')}"
react_app_backend_base_url: "https://reference-backend-bsn-development-plutonium.bsn-development-potassium.bosonprotocol.io"

parent_domain_name: "bosonprotocol.io"
primary_domain_name: "bsn-development-potassium.%{hiera('parent_domain_name')}"
Expand Down
1 change: 0 additions & 1 deletion config/deployments/bsn-production-vanadium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ environment: "production" # use full asset pipeline for all deployed environment
parent_role_arn: "%{hiera('bsn_parent_account_admin_role')}"

content_work_directory: "build/content/%{hiera('deployment_identifier')}"
react_app_backend_base_url: "https://reference-backend-bsn-production-oganesson.bsn-production-lutetium.bosonprotocol.io"

parent_domain_name: "bosonprotocol.io"
primary_domain_name: "bsn-production-lutetium.%{hiera('parent_domain_name')}"
Expand Down
1 change: 1 addition & 0 deletions config/deployments/local-development.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
---
app_port: "3002"
react_app_backend_base_url: ""
Binary file modified config/secrets/website/bsn-demo-copernicium.yaml
Binary file not shown.
Binary file modified config/secrets/website/bsn-development-hassium.yaml
Binary file not shown.
Binary file modified config/secrets/website/bsn-production-vanadium.yaml
Binary file not shown.
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,10 @@
"license": "LGPL-3.0-only",
"private": true,
"scripts": {
"start": "env-cmd -f .env.dev node scripts/start.js",
"start": "node scripts/start.js",
"start:local": "env-cmd -f .env.local node scripts/start.js",
"start:demo": "env-cmd -f .env.demo node scripts/start.js",
"start:playground": "env-cmd -f .env.playground node scripts/start.js",
"build": "node scripts/build.js",
"build:dev": "env-cmd -f .env.dev node scripts/build.js",
"build:demo": "env-cmd -f .env.demo node scripts/build.js",
"build:playground": "env-cmd -f .env.playground node scripts/build.js",
"build:local": "env-cmd -f .env.local node scripts/build.js",
"app:lint": "eslint \"src/**/*.{js,jsx}\"",
"app:lint-fix": "eslint --fix \"src/**/*.{js,jsx}\"",
"app:format": "prettier --list-different \"src/**/*.{js,jsx}\"",
Expand Down