I so I got an application like coin exchange and I want to install it. the only way I can run it now is to copy the whole directory structure and new place and run npm start to bring it up.
how do you actually deploy the application? I tried using npm run build and it creates a build directory but what do I do with the build directory? browsing to index.html just creates a blank page.
any one have an example of deploying the coin Exchange program?
UPDATE:
The easiest way was to use the serve command, this is a npm module so you install it with:
$ npm install -g serve
This adds a the program serve in the same place as npx, npm are installed.
then you go to the project directory and use the
npm run build
command to create a build directory that is a production version of your application.
copy the build directory to where ever you want it deployed.
then use the serve command to serve it:
serve -s fullpathtobuild
in this example i ran it “serve -s build” and this runs in the forgound.
so now I can browse to localhost:5000 and my application shows up woo hoo!