Skip to content

Commit

Permalink
chore: change protocol to https when running examples server
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej committed Apr 10, 2019
1 parent 4450cfd commit 1a99908
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ Just clone the repository, install and start to test various examples locally
npm install
npm start

Open your browser at `http://localhost:9000/`
Open your browser at `https://localhost:9000/`. Warning about invalid certificate will be displayed. On Chrome, please click advanced > "Proceed to localhost (unsafe)".
This is needed because browsers in order to use microphone and camera require site to use `https`, however server started with `npm start` has no certificate.

# Add to your JavaScript application

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:npm": "rimraf ./lib && webpack --config webpack.config.npm.js --define process.env.NODE_ENV=\"production\"",
"build:prod": "rimraf ./dist && webpack --config webpack.config.prod.js --define process.env.NODE_ENV=\"production\"",
"build:dev": "npm run clean && rimraf ./dist && webpack --config webpack.config.dev.js && (cd dist && ln -s APIdaze-$npm_package_version-dev-master.js APIdaze-latest-dev-master.js) && (cd samples && ln -s ../dist)",
"start": "npm run build:dev && webpack-dev-server --hot --inline --config webpack.config.dev.js ",
"start": "npm run build:dev && webpack-dev-server --hot --https --inline --config webpack.config.dev.js ",
"clean": "rimraf ./dist && rimraf samples/dist",
"test": "./node_modules/mocha/bin/mocha --require jsdom-global/register --require babel-register tests/CLIENT.test.js"
},
Expand Down

0 comments on commit 1a99908

Please sign in to comment.