Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes monorepo #25

Open
wants to merge 5 commits into
base: bm/scry-near-handler
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions near/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
.vscode
.DS_Store
.nx

/build
/dist
33 changes: 9 additions & 24 deletions near/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,24 @@ This repository is set up with a clone of the [NearSocial/VM](https://github.com

## Getting Started

(I was unable to get a nice monorepo working...)

To run locally:

1. In one terminal, start the bos-worskspace

1. From this root (/near), run:
```cmd
npm run dev
pnpm install
pnpm run dev
```

![bos-workspace](./assets/bos-workspace.png)

This will serve your local widget code (/apps/urbit/*) to port 8080.

2. In another terminal, start the gateway

```cmd
cd gateway
npm run dev
```
![bos-workspace](./assets/bos-workspace.png)

This will start a react app at port 4000.
and start a react app at port 4000.

3. Configure flags on gateway to work with local widgets. Go to `http://localhost:3000/flags` and paste in: `http://127.0.0.1:8080/api/loader`. Components should be loading successfully if localhost:3000 shows a dashboard rather than a white screen.
2. Configure flags on gateway to work with local widgets. Go to `http://localhost:3000/flags` and paste in: `http://127.0.0.1:8080/api/loader`. Components should be loading successfully if localhost:3000 shows a dashboard rather than a white screen.

4. Link the VM to the gateway

```cmd
cd VM
yarn link
cd ../gateway
yarn link near-social-vm
```
If successful, you should see:
3. Verify VM is connected

![vm-configured](./assets/vm-configured.png)

Expand All @@ -53,6 +37,7 @@ This signifies that `Urbit` keyword is recognized.

```cmd
cd VM
npm run build
pnpm run build
```

If linked successfully, gateway should load changes automatically.
2 changes: 1 addition & 1 deletion near/VM/dist/index.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions near/VM/dist/index.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
141 changes: 70 additions & 71 deletions near/VM/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading