Use the command:
npm run deploy
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
Builds the app for production to Github.
- Created using create-react-app
- Initial react routing solved by: facebook/create-react-app#1765
- Page reload routing solved by: https://github.com/rafrex/spa-github-pages
- Implemented react-transition-group on routing solved by: https://medium.com/lalilo/dynamic-transitions-with-react-router-and-react-transition-group-69ab795815c9 (simple example: https://reacttraining.com/react-router/web/example/animated-transitions)
- Integrate phaser 3: https://www.npmjs.com/package/phaser (base game: https://phaser.io/tutorials/making-your-first-phaser-3-game/part1)
- Understanding how webpack is integrated--html-webpack-plugin: (https://blog.logrocket.com/getting-started-with-create-react-app-d93147444a27/)
- Load game images, (url-loader converts small images into base64) solved by: https://github.com/webpack-contrib/file-loader
- Phaser game not unmounting on route change solved by: http://www.html5gamedevs.com/topic/32563-whats-the-proper-way-to-destroy-a-phaser-3-game-instance/