- Node.js(v16) + npm(v8)
- Install NodeJS: https://nodejs.org/en/download
- Install NVM: Refer to this link.
- Check out the current Node version:node --version
- Switch Node version:nvm use 16 - Gulp installed globally:
npm install gulp --global - Install a webserver (one time):
npm i -g superstatic - Install the Requestly chrome extension and Allow CORS extension
- Go to: https://app.requestly.io/rules/editor/create/Replace
- SetReplacetohttps://s3-us-west-1.amazonaws.com/assets.support.clerky.com
- SetWithtohttp://localhost:3474/, Save this rule.
- Click on Allow CORS extension and turn on the extension by clicking on the left panel where you see character C.
git clone https://github.com/clerky/help-center-front-end.git
cd help-center-front-end
npm install
gulp watch
This command watches your changes and builds minified CSS and JS files to assets/stylesheets/application.css & assets/javascripts/application.js.
superstatic .
A successful run shows this message: Superstatic started. Visit http://localhost:3474 to view your app.
You can check if the server is serving asset files correctly by visiting these URLs.
http://localhost:3474/assets/javascripts/application.js
http://localhost:3474/assets/stylesheets/application.css