Should I Listen It
Set you up for your next Gig.
Check a live example @ https://shouldilistenit.sirlisko.com/the+strokes
The Website is powered by NodeJs.
In order to have the Website up and running NodeJs is mandatory, it can be installed using n, a handy NodeJs binary manager, or using the official installer present in the NodeJs website (https://nodejs.org/download/).
Now the build consists of 2 steps:
- Install all the FE dependencies for the build (i.e. webpack, postcss, etc.)
Install the dependencies
Once NodeJs is installed, its package manager NPM will be available, all you need to do is run in the main directory of the project the following command.
npm install --production
This will install all the software needed in order to build and run the Website.
In addition of that NPM allows us to run base commands that could be plugged to gulp functions or utilities.
Build the Front-End
npm run build
It runs the following tasks:
- check the syntax of the JS, according to StandardJS (via ESLint)
- check the syntax of the CSS, using stylelint
- compile the CSS files using PostCss and cssnext
- compile the JS files using webpack 2.x
Work with the Front-End (Develop)
The easier way to build the Front-End in Develop mode is with:
npm run watch
In addition to the build, this command is also watching the file system looking for files change. Once one of the resources changes the relative assets are immediately recompiled.
Running the tests
In order to running the tests and linters the dev dependencies need to be installed.
Once the dependencies are installed:
The following API keys are needed in order to have everything up and running: