Skip to content

1. Installation, Running, and Building

William Kwok edited this page Mar 17, 2020 · 3 revisions

Note, modifying the website has been optimized for *nix devices. If any of the scripts don't work, you will have to debug.

How to install

Using currently node version 12.3.0, please use node version manager to handle versions if you can.

nvm use  # this is node version manager.
npm install

How to run DEVELOPMENT MODE

On file save, it will refresh the application and start deploying the latest changes.

npm run dev

How to build and run a LOCAL PRODUCTION mode application

This is what we do on the IUGA server. Production mode is different from development mode because all the files are static and load faster. It is optimized for production rather than development. This means things like variable names are more obfuscated for compression, etc.

npm run build
npm run productionstart

How to deploy

npm run deploy