Run `nx serve` and open `http://127.0.0.1:8080` in your browser.
Then open your `text editor` and start developing.
The browser will automatically refresh when files are saved.
### Troubleshooting building
Some things to consider if you have trouble building the package:
- Make sure that you have the correct version of `node`, `npm` and `nvm`. Also ensure you have [Nx CLI](https://nx.dev/react/cli/overview) installed globally. You can find the version that is tested on Travis CI by looking at the log in the [build results](https://travis-ci.org/ethereum/remix-ide).
Run:
```bash
node --version
npm --version
nvm --version
```
- In Debian based OS such as Ubuntu 14.04LTS you may need to run `apt-get install build-essential`. After installing `build-essential` run `npm rebuild`.
## Unit Testing
Run the unit tests via: `nx test <project-name>`
```bash
nx test remix-libs
```
Running unit tests via `nx test` requires at least node v10.0.0
## Browser Testing
To run the Selenium tests via Nightwatch:
- Build Remix IDE and serve it: `nx build remix-ide --with-deps && nx serve` # starts web server at localhost:8080
- Make sure Selenium is installed `npm run selenium-install` # don't need to repeat
- Run a selenium server `npm run selenium`
- Run all the tests `npm run nightwatch_local_firefox` or `npm run nightwatch_local_chrome`
- npm run nightwatch_local_remixd # remixd needs to be run
- npm run nightwatch_local_terminal
- npm run nightwatch_local_gist
- npm run nightwatch_local_workspace
- npm run nightwatch_local_defaultLayout
- npm run nightwatch_local_pluginManager
- npm run nightwatch_local_publishContract
- npm run nightwatch_local_generalSettings
- npm run nightwatch_local_fileExplorer
- npm run nightwatch_local_debugger
- npm run nightwatch_local_editor
- npm run nightwatch_local_compiler
- npm run nightwatch_local_txListener
- npm run nightwatch_local_fileManager
- npm run nightwatch_local_runAndDeploy
**NOTE:**
- **the `ballot` tests suite** requires to run `ganache-cli` locally.
- **the `remixd` tests suite** requires to run `remixd` locally.
- **the `gist` tests suite** requires specifying a github access token in **.env file**.
```
gist_token = <token>
```
**note that this token should have permission to create a gist.**
## Usage as a Chrome Extension
If you would like to use this as a Chrome extension, you must either build it first or pull from the `gh-pages` branch, both described above.
After that, follow these steps:
- Browse to `chrome://extensions/`
- Make sure 'Developer mode' has been checked
- Click 'Load unpacked extension...' to pop up a file-selection dialog
- Select your `remix-ide` folder
## Documentation
To see details about how to use Remix for developing and/or debugging Solidity contracts, please see [our documentation page](https://remix-ide.readthedocs.io/en/latest/)