- Install Node version >= 8
In the root directory of this code, use the following commands:
npm install
- it will install your project dependencies
npm start
- it will start your server then open your browser and use http://localhost:3002
.
Note: By default your server is going to run on PORT 3002.
Default ports:
- '3002'
Steps to set Custom Port:
Set environment variable port
for your server.
Just use export port=3002
. To verify varialbe is set of not, just run the command: echo ${port}
.
This is all you need to deploy this demo Convert html 2 pdf with Node JS
application.
If anyone wants any further instruction can contact me through email.
Thank you