Run git clone https://github.com/MaxiSuppes/hypechat-web.git
. It creates a folder called hypechat-web.
- Node 10.15.0
- Npm 6.4.1
Run npm install
in the project directory.
- In the project directory, create a new file called .env.local and copy on it the content of .env.local.example.
- In WebStorm, right-click on src folder and select Mark Directory as Source root option.
Run docker image build -t react .
.
The docker image "react" should be created.
Runs the app in development mode.
Open localhost to see it in the browser.
Launches the test runner.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for a better performance.
The build is minified and the filenames include the hashes.
heroku login -i
heroku container:login
heroku container:push web --app hypechat-app
heroku container:release web --app hypechat-app