Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
Remove localnet scripts and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored and mergify[bot] committed Apr 17, 2021
1 parent 01bc924 commit bb1191b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 21 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ within a Break program account, so each transaction can be uniquely identified b

### Prerequisites

Solana CLI Tooling: https://docs.solana.com/cli/install-solana-cli-tools
For running this application you need to have [NodeJs](https://nodejs.org/en/) and [NPM](https://www.npmjs.com/).
We recommend to use [NVM](https://github.com/creationix/nvm) for managing NodeJs versions
For NVM installation please refer to [manual](https://github.com/creationix/nvm#install--update-script)
Expand All @@ -34,18 +35,12 @@ _Note: If the cluster you connect to doesn't provide a faucet, you will need to
cd server
# Start local node
npm run localnet:up
solana-test-validator
# Connect to local node
npm run start:dev
```

_Note: It may be necessary to pull the required docker image if `npm run localnet:up` fails with the message `Unable to find image 'solanalabs/solana:edge' locally`. Run the below command if that is the case, then try again._
```
# Pull the docker image
docker pull solanalabs/solana:edge
```

#### Configuration

By default, the Break server will connect to a local node for RPC and will use a faucet to fund game play. To configure this behavior, set the following environment variables when running the server:
Expand Down
6 changes: 1 addition & 5 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
"eject": "react-scripts eject",
"lint": "echo \"lint is run during build\"",
"format": "prettier -c \"**/*.+(js|jsx|ts|tsx|json|css|scss|md)\"",
"format:fix": "prettier --write \"**/*.+(js|jsx|ts|tsx|json|css|scss|md)\"",
"localnet:down": "solana-localnet down",
"localnet:logs": "solana-localnet logs -f",
"localnet:up": "solana-localnet up",
"localnet:update": "solana-localnet update"
"format:fix": "prettier --write \"**/*.+(js|jsx|ts|tsx|json|css|scss|md)\""
},
"testnetDefaultChannel": "edge",
"dependencies": {
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
"lint:fix": "./package.sh both run lint:fix",
"format": "./package.sh both run format",
"format:fix": "./package.sh both run format:fix",
"localnet:down": "./package.sh client run localnet:down",
"localnet:logs": "./package.sh client run localnet:logs",
"localnet:up": "./package.sh client run localnet:up",
"localnet:update": "./package.sh client run localnet:update",
"postinstall": "./package.sh both install"
}
}
6 changes: 1 addition & 5 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
"format": "prettier --check \"**/*.{js,jsx,ts,tsx,json,md}\"",
"format:fix": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"lint": "set -ex; eslint --ext .js,.ts,.tsx .",
"lint:fix": "npm run lint -- --fix",
"localnet:down": "solana-localnet down",
"localnet:logs": "solana-localnet logs -f",
"localnet:up": "solana-localnet up",
"localnet:update": "solana-localnet update"
"lint:fix": "npm run lint -- --fix"
},
"testnetDefaultChannel": "edge",
"dependencies": {
Expand Down

0 comments on commit bb1191b

Please sign in to comment.