Building your application
Building your application for production depends on which base language and which application type you chose for your boilerplate.
Note
In order to use your application in production mode you must set the NODE_ENV
variable equal to production
in your .env
file. This will configure your application to use the build artifacts created below.
See the relevant documentation to build your application for production:
#
Building your Javascript full-stack applicationTo build your Javascript full-stack application run:
This will build your client side code and place it inside a build
folder in your project directory.
Once you have built your application you can now start your application in production mode
#
Building your Javascript API applicationYou do not need to build your application if you are running a Javascript API boilerplate. Simply update your NODE_ENV
as per the above note and you are ready to deploy your application to production.
#
Building your Typescript full-stack application#
Build both client and server at the same time for production#
Build only the client for production#
Build only the server for productionOnce you have built your application you can now start your application in production mode
#
Building your Typescript API applicationOnce you have built your application you can now start your application in production mode