make app http heroku code example
Example 1: heroku create app
heroku create <app_name_you_want_it_to_be>
# Make sure you have heroku CLI installed and have added it to PATH.
Example 2: heroku get requests return html code in production
// use this after route not before route
if (process.env.NODE_ENV === 'production') {
app.use(express.static(resolve(process.cwd(), 'client/build')))
app.get('*', (req, res) => {
res.sendFile(resolve(process.cwd(), 'client/build/index.html'))
})
}