Merge pull request #609 from rschamp/docs/readme-install

Update README for current process
This commit is contained in:
Ray Schamp 2017-06-15 11:28:24 -04:00 committed by GitHub
commit 55b4b3fca7

View file

@ -8,11 +8,11 @@
## Installation ## Installation
This requires you to have Git and Node.js installed. This requires you to have Git and Node.js installed.
In your own node environment/application: To install as a dependency for your own application:
```bash ```bash
npm install https://github.com/LLK/scratch-vm.git npm install scratch-vm
``` ```
If you want to edit/play yourself: To set up a development environment to edit scratch-vm yourself:
```bash ```bash
git clone https://github.com/LLK/scratch-vm.git git clone https://github.com/LLK/scratch-vm.git
cd scratch-vm cd scratch-vm
@ -22,7 +22,7 @@ npm install
## Development Server ## Development Server
This requires Node.js to be installed. This requires Node.js to be installed.
For convenience, we've included a development server with the VM. This is sometimes useful when running in an environment that's loading remote resources (e.g., SVGs from the Scratch server). For convenience, we've included a development server with the VM. This is sometimes useful when running in an environment that's loading remote resources (e.g., SVGs from the Scratch server). If you would like to use your modified VM with the full Scratch 3.0 GUI, [follow the instructions to link the VM to the GUI](https://github.com/LLK/scratch-gui/wiki/Getting-Started).
## Running the Development Server ## Running the Development Server
Open a Command Prompt or Terminal in the repository and run: Open a Command Prompt or Terminal in the repository and run:
@ -31,7 +31,7 @@ npm start
``` ```
## Playground ## Playground
To run the Playground, make sure the dev server's running and go to [http://localhost:8073/playground/](http://localhost:8073/playground/) - you will be directed to the playground, which demonstrates various tools and internal state. To view the Playground, make sure the dev server's running and go to [http://localhost:8073/playground/](http://localhost:8073/playground/) - you will be directed to the playground, which demonstrates various tools and internal state.
![VM Playground Screenshot](https://i.imgur.com/nOCNqEc.gif) ![VM Playground Screenshot](https://i.imgur.com/nOCNqEc.gif)
@ -42,7 +42,7 @@ npm run build
``` ```
```html ```html
<script src="/path/to/vm.js"></script> <script src="/path/to/dist/web/scratch-vm.js"></script>
<script> <script>
var vm = new window.VirtualMachine(); var vm = new window.VirtualMachine();
// do things // do things