1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-29 12:55:21 +01:00

Update README.md

This commit is contained in:
Kyle Spearrin 2016-12-24 00:13:36 -05:00 committed by GitHub
parent 588652b721
commit a6c6e9e29b

View File

@ -9,6 +9,30 @@ The bitwarden browser extension is written using the Chrome Web Extension API an
![Alt text](http://imgur.com/C9p87nk.png "My Vault") ![Alt text](http://imgur.com/C9p87nk.png "My Vault")
# Build/Run
**Requirements**
- Node.js
- Gulp
- Chrome (preferred), Opera, or Firefox browser
By default the extension is targeting the production API. If you are running the [Core](https://github.com/bitwarden/core) API locally, you'll need to switch the extension to target your local API. Open `src/services/apiService.js` and set `this.baseUrl` to your local API instance (ex. `http://localhost:4000`).
Then run the following commands:
- `gulp build`
You can now load the extension into your browser through the browser's extension tools page:
- Chrome/Opera:
1. Type `chrome://extensions` in your address bar to bring up the extensions page.
2. Enable developer mode (checkbox)
3. Click the "Load unpacked extension" button, navigate to the `src` folder of your local extension instance, and click "Ok".
- Firefox
1. Type `about:debugging` in your address bar to bring up the add-ons page.
2. Click the `Load Temporary Add-on` button, navigate to the `src/manifest.json` file, and "Open".
# Contribute # Contribute
Code contributions are welcome! Please commit any pull requests against the `master` branch. Learn more about how to contribute Code contributions are welcome! Please commit any pull requests against the `master` branch. Learn more about how to contribute