-
Install Nodejs https://nodejs.org/en/download/package-manager/
-
Latest Npm
sudo npm install npm@latest -g
- Install java
sudo apt-get install openjdk-8-jdk
- Grunt
sudo npm install grunt-cli -g
- Bower
sudo npm install -g bower
bower install
- Install Compass
See: http://compass-style.org/install/
sudo apt-get install ruby-full
sudo gem update --system
sudo gem install compass
- Build
npm install
grunt build
docker build -t jluccisano/nextrun ./docker
docker run -dit --name mongo -p 27017:27017 -v /data/db:/data/db mongo
docker run -dit --name nextrun -p 4000:3000 -e NODE_ENV=prod --link mongo:mongo jluccisano/nextrun
sudo iptables -t nat -A PREROUTING -i enp1s0 -p tcp --dport 80 -j REDIRECT --to-port 4000