These instructions is a part of a live coding video.
- .NET Core 3.1 SDK - https://dotnet.microsoft.com/download
- Heroku CLI - https://devcenter.heroku.com/articles/heroku-cli
Create a base folder CodingLive002
.
Create the .gitignore file based on file https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
dotnet new webapi --name MyApi
dotnet add package Microsoft.AspNetCore.SignalR --version 1.1.0
npx create-react-app counter_page --template typescript
yarn add @microsoft/signalr
# Build React.js
yarn build
# Build container `webapi`
docker-compose build
# Heroku deploy process
heroku login
heroku apps:create myapp-name
heroku container:login
heroku container:push web -a myapp-name
heroku container:release web -a myapp-name