A realtime online course player, built with React and Socket.IO.
This app is used to play course recordings.
Live Demo on Render:
https://course-player-react.onrender.com/
git clone https://github.com/jojozhuang/course-player-react.git
cd course-player-react
npm install
npm start
Access http://localhost:12100/ in web browser and click 'Play' button, enjoy!
Follow tutorial Deploying React and Socket.IO App to Heroku to deploy this app to Heroku.
In Heroku, add Config Vars NPM_CONFIG_PRODUCTION=false
to avoid babel-node: not found error, see https://stackoverflow.com/questions/36781542/package-json-start-script-babel-node-not-found-on-heroku-deploy and https://devcenter.heroku.com/articles/config-vars.
2021-07-15T04:42:36.017148+00:00 app[web.1]: [heroku-exec] Starting
2021-07-15T04:42:36.761666+00:00 app[web.1]:
2021-07-15T04:42:36.761713+00:00 app[web.1]: > course-player-react@1.0.0 start /app
2021-07-15T04:42:36.761714+00:00 app[web.1]: > NODE_ENV=development npm run open:src
2021-07-15T04:42:36.761714+00:00 app[web.1]:
2021-07-15T04:42:37.633980+00:00 app[web.1]:
2021-07-15T04:42:37.633993+00:00 app[web.1]: > course-player-react@1.0.0 open:src /app
2021-07-15T04:42:37.633994+00:00 app[web.1]: > babel-node tools/server.js
2021-07-15T04:42:37.633994+00:00 app[web.1]:
2021-07-15T04:42:37.651990+00:00 app[web.1]: sh: 1: babel-node: not found
2021-07-15T04:42:37.662023+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-07-15T04:42:37.662453+00:00 app[web.1]: npm ERR! syscall spawn
2021-07-15T04:42:37.662666+00:00 app[web.1]: npm ERR! file sh
2021-07-15T04:42:37.662909+00:00 app[web.1]: npm ERR! errno ENOENT
2021-07-15T04:42:37.671188+00:00 app[web.1]: npm ERR! course-player-react@1.0.0 open:src: `babel-node tools/server.js`
2021-07-15T04:42:37.671306+00:00 app[web.1]: npm ERR! spawn ENOENT
2021-07-15T04:42:37.671442+00:00 app[web.1]: npm ERR!
2021-07-15T04:42:37.671560+00:00 app[web.1]: npm ERR! Failed at the course-player-react@1.0.0 open:src script.
2021-07-15T04:42:37.671672+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Follow tutorial Continuously Deploy React and Socket.IO App to Heroku with Travis-CI to continuously deploy this app to Heroku.
Read portfolio Course Player(React) to learn the main functions of this course player.
Read tutorial Building Course Player with React and Socket.IO to learn how this course player is built.