Arranging your environment

Node Installation

Running Fronthack on your machine requires a Node installed into system, inline with it’s package manager - Npm. If you are not new in frontend, you should already have it done.

If you have not installed Node yet, the best way to do that is to use a NVM package (Node Version Manager). As the name suggests, this is a pretty useful program to install any version of Node or quickly change it, which is useful when you have to work on various projects. Additionally i found that it is more stable than a standard installation of Node, this is why i recommend t use it.

Node installation using NVM

  1. NVM installation. Use official install script from here. Version pasted below might be outdated.
     curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
    

    Node Version Manager is also available in homebrew repositories.

  2. Verify installation. Check if following command return the version.
    command -v nvm
    
  3. Install and use the recent version of Node
    nvm install node
    nvm use node
    
  4. Verify Node and Npm installation
    node -v
    npm -v
    

Fronthack CLI installation

Fronthack commandline is a generator to create new projects, subpages and components. It allows you to save manual writing of large amounts of code. Install Fronthack CLI globally using the Npm:

npm install -g fronthack

After successful installation you should be able to run a following command without any errors:

fronthack help

Your local machine is now ready to work with Fronthack. It is a time to create new project.


Improve this page