Starting and Stopping the Server
I’ve tried to make it as painless as possible for you to serve both your own work and the completed demos over localhost. To serve your own files as you work on them, run npm run start or simply npm start on the command line. Your files are more important, so they get the more convenient commands.
Remember to Install Dependencies | |
---|---|
If you haven’t yet run npm install, be sure to do so before starting the server, or if you encounter errors about missing modules. |
To serve the book’s completed examples, you’ll need to run the slightly more verbose command npm run start:demos. No space on either side of the colon. ...
Get Programming WebRTC now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.