With yarn :
yarn
with npm :
npm i
!! Important !! You need to install this extension or it will not work :
sudo apt-get update
sudo apt-key adv --keyserver hkp:https://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-get update
sudo apt-get install -y docker-engine
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Will run webpack dev serveur on the port 3000 :
With yarn :
yarn start
With npm :
npm run start
You can also do it with docker :
docker-compose up
Will expose the builded version on the port 5000 :
yarn prod
If you don't want to do it with docker you can do :
bash run.sh