@thepalaceproject/circulation-admin 1.34.3-post.6 → 1.34.3-post.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -83,11 +83,17 @@ Webpack will take care of compiling and updating any new changes made locally fo
83
83
 
84
84
  This front-end may be run locally in development against a remote Circulation Manager back-end. This removes the need to build a local Circulation Manager from source in order to work on the front-end.
85
85
 
86
- 1. Run `npm run dev-server -- --env=backend=[url]` in this `circulation-admin` repository.
86
+ 1. Specify a back-end and start the dev server. You have two options:
87
87
 
88
- Example: `npm run dev-server -- --env=backend=https://gorgon.tpp-qa.lyrasistechnology.org`
88
+ - Create an `.env` or `.env.local` file in the root of the project and assign `BACKEND=https://gorgon.tpp-qa.lyrasistechnology.org`. Run `npm run dev-server`.
89
89
 
90
- Note: The tortured syntax here results from going through npm and webpack. The first `--` separates arguments intended for npm from arguments intended for the script that npm runs. In this case the script executes webpack, which allows an environment object to be supplied on the command line using `--env`. Properties of the environment object are specified using the `--env=[property]=[value]` syntax.
90
+ Note: `dotenv -c` loads `.env.local` then `.env` in that order and will not overwrite variables set by the previous file.
91
+
92
+ - Run `npm run dev-server -- --env=backend=[url]` in this `circulation-admin` repository. Providing `--env=backend=` will override `.env` and `.env.local`.
93
+
94
+ Example: `npm run dev-server -- --env=backend=https://gorgon.tpp-qa.lyrasistechnology.org`
95
+
96
+ Note: The tortured syntax here results from going through npm and webpack. The first `--` separates arguments intended for npm from arguments intended for the script that npm runs. In this case the script executes webpack, which allows an environment object to be supplied on the command line using `--env`. Properties of the environment object are specified using the `--env=[property]=[value]` syntax.
91
97
 
92
98
  1. Visit `http://localhost:8080/admin/`.
93
99
  1. Log in using credentials for the CM back-end. Content from that Circulation Manager should appear.