1.3.0 • Published 4 years ago
web-app-heroku-node v1.3.0
web-app-heroku-node
Deploy your static web app on heroku with nodejs
A barebones Node.js app using Express 4.
Deploying your web app
Install like dev dependency
$ npm i web-app-heroku-node --save-dev
Build your source code
$ npm run build
Deploy your web app
$ node node_modolues/web-app-heroku-node [heroku app name]
Running and testing Locally this library
Make sure you have Node.js, the Heroku CLI and the Git CLI installed.
$ git clone git@github.com:HernanGH/web-app-heroku-node.git # or clone your own fork
$ npm install
$ npm start
The test app should now be running on localhost:5000. If you want deploy on heroku this test app. You should do this:
$ heroku git:remote -a [herokuAppName]
$ git push heroku HEAD