Skip to content

Commit

Permalink
push doc 2
Browse files Browse the repository at this point in the history
  • Loading branch information
yohann-dev committed Apr 30, 2024
1 parent add1b75 commit 5d17499
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,39 @@ To set up the project locally, follow these steps:
5. **View in browser**:
Open your web browser and go to [http://localhost:5173/](http://localhost:5173/) to see the application running.

## Managing Chains
## Installing Node.js and npm on the Server

To run the project on a server, Node.js and npm must be installed. Here is how to install Node.js version 18 and npm on a Linux server:

### Installing Node.js v18

1. **Curl and Software Properties**:
Ensure that `curl` and the software properties are installed, which will help in fetching and setting up the Node.js repository.
```bash
sudo apt update
sudo apt install curl software-properties-common
```

2. **NodeSource Node.js 18.x repo**:
Add the Node.js 18.x repository from NodeSource. This repository contains the latest version of Node.js.
```bash
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
```

3. **Install Node.js**:
Once the repository is added, install Node.js and npm.
```bash
sudo apt install nodejs
```

4. **Verify Installation**:
Check the installed versions of Node.js and npm to ensure they are installed correctly.
```bash
node -v
npm -v
```

### Managing Chains

To add or remove blockchain chains for the mainnet environment, follow the steps below.

Expand Down
1 change: 1 addition & 0 deletions src/stores/useBlockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const useBlockchain = defineStore('blockchain', {
return this.current && this.current.providerChain;
},
computedChainMenu() {
console.log(123)
let currNavItem: VerticalNavItems = [];
const router = useRouter();
const routes = router?.getRoutes() || [];
Expand Down

0 comments on commit 5d17499

Please sign in to comment.