Install Node.js on Ubuntu:
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
Or on Debian (as root):
curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
apt-get install -y nodejs
Install Yarn on Linux:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
Install the pre-commit Python package:
pip install pre-commit
Set up the git pre-commit hook:
pre-commit install
Install dependencies:
yarn
Start a development server:
yarn start
Prepare a production build:
yarn build