You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-2Lines changed: 37 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,9 +37,44 @@ To build this site:
37
37
- Run `npm run dev`
38
38
- The site will be available in real time via a localhost URL
39
39
40
+
### Generate a self-signed certificate
41
+
42
+
In order to run this repo in local development mode, two files must be added to the repo's root directory. The following set of commands apply to a macOS system. However, if mkcert is installed by another package manager, this can be run on any flavor of *nix.
43
+
44
+
```bash
45
+
cd~/.ssh
46
+
brew install mkcert # replace with another package manager for linux distro
47
+
brew install nss # need to install certutil before running `mkcert -install` so the CA can be automatically installed in Firefox
48
+
49
+
# at this point, open any https website in Firefox before running the below commands
Now, navigate to your project directory, wherever the repo was cloned to, for example cd `~/Sites/work/website` and copy the `.pem` files into the repo root. These keys are .gitignored by default.
58
+
59
+
Or run the below command to copy the files to your currently `cd`’d dir automatically
Please use `npm ci` in place of `npm i` when not explicitly upgrading dependencies. `npm ci` will only install versions of packages provided in the lockfile, leading to more stability.
77
+
Please use `npm ci` in place of `npm i` when not explicitly upgrading dependencies. `npm ci` will only install versions of packages provided in the lockfile, leading to more stability.
43
78
44
79
Always regression test the site if upgrading packages, as they may contain breaking changes.
45
80
@@ -82,6 +117,6 @@ To better display the components available on the site, their properties, and th
0 commit comments