This repo requires pnpm.
Initialize repo:
pnpm i
Start development version:
pnpm dev
To start local component development you need to follow this steps:
-
Run commands as mentioned in Setup & Development.
-
Navigate to near-discovery-components and follow Local development with BOS-Loader section.
-
(optional) Make a copy of
".env.example"
called".env.local"
.NEXT_PUBLIC_NETWORK_ID
allows you to choose working environment.
Note: The NEXT_PUBLIC_NETWORK_ID
value should be the same as chosen working environment in near-discovery-components
. More about environments.
This section needs testing since switch to pnpm
If you need to make changes to the VM and test locally, you can easily link your local copy of the VM:
- Clone the VM repo as a sibling of
near-discovery
:
git clone git@github.com:NearSocial/VM.git
Folder Structure:
/near-discovery
/VM
-
Run
pnpm link ../VM
-
Any time you make changes to the
VM
, runpnpm build
inside theVM
project in order for the viewer project to pick up the changes