-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvement: Setting Up The Project (#9543)
* Adds certificate related commands to project setup steps * Adds nss installation guide to project setup steps * Improve console messages on holodeck ensure-cert script * Improve certificate related error messages on holodeck index * Cleanup unsused imports and functions on holodeck * Adds default cert and key paths to holodeck server index file
- Loading branch information
1 parent
f3d4919
commit 5bfbd71
Showing
3 changed files
with
64 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Setting Up The Project | ||
|
||
1. Setup Volta | ||
## Setup Volta | ||
|
||
If you are not already using [⚡️ volta](https://volta.sh/) or have a version older than `1.1.1` you will want to begin by [installing it](https://docs.volta.sh/guide/getting-started). | ||
|
||
|
@@ -16,37 +16,62 @@ export VOLTA_FEATURE_PNPM=1; | |
|
||
> **Note** if you have previously installed pnpm globally via other means you should uninstall it from all other locations first. You may also need to uninstall nvm or other node version managers if they turn out to conflict. | ||
2. Install bun.sh | ||
## Install bun.sh | ||
|
||
If you don't already have [bun.sh](https://bun.sh/) | ||
For MacOS and Linux | ||
If you don't already have [bun.sh](https://bun.sh/) | ||
For MacOS or Linux | ||
```sh | ||
curl -fsSL https://bun.sh/install | bash | ||
``` | ||
can be done using homebrew, npm or Docker (User choice) checkout installation [doc](https://bun.sh/docs/installation#macos-and-linux) | ||
|
||
For Windows | ||
For Windows | ||
```sh | ||
# WARNING: No stability is guaranteed on the experimental Windows builds | ||
powershell -c "irm bun.sh/install.ps1|iex" | ||
``` | ||
Installation [doc](https://bun.sh/docs/installation#windows) | ||
Installation [doc](https://bun.sh/docs/installation#windows) | ||
|
||
3. Clone the repository | ||
## Install certificate packages | ||
|
||
Install mkcert using homebrew on MacOS or Linux | ||
```sh | ||
brew install mkcert | ||
``` | ||
can be done using Chocolatey, Scoop or MacPorts (User choice) checkout installation [doc][https://github.com/FiloSottile/mkcert?tab=readme-ov-file#installation] | ||
|
||
For Firefox users, Mozilla NSS is also needed | ||
Using homebrew on MacOS | ||
```sh | ||
brew install nss | ||
``` | ||
Or apt on Linux | ||
```sh | ||
sudo apt install libnss3-tools | ||
``` | ||
but can also be done using other methods. | ||
|
||
## Clone the repository | ||
|
||
```sh | ||
git clone [email protected]:emberjs/data.git | ||
``` | ||
|
||
4. Install the project dependencies | ||
## Install the project dependencies | ||
|
||
```sh | ||
cd data && pnpm install | ||
``` | ||
|
||
Currently the install command is also what builds all of the individual packages in the monorepo and hardlinks them together, so if making changes to one package that need to be used by another you will need to rerun `pnpm install` for the changes to be picked up. | ||
|
||
5. Run some commands | ||
## Create certificates | ||
|
||
```sh | ||
pnpx @warp-drive/holodeck ensure-cert | ||
``` | ||
|
||
## Run some commands | ||
|
||
Generally test and lint commands can be found in the `"scripts"` section of the root `package.json` manifest. Individual packages or test packages have additional commands in the `"scripts"` section of their own `package.json` manifest as well. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters