Skip to content

Instantly share code, notes, and snippets.

@mateomorrison
Created February 27, 2017 17:31
Show Gist options
  • Save mateomorrison/7e79dae75cad21a2b4cfe3733cb67737 to your computer and use it in GitHub Desktop.
Save mateomorrison/7e79dae75cad21a2b4cfe3733cb67737 to your computer and use it in GitHub Desktop.
Install Yoonic Nicistore on your Digital Ocean
# Clone the repository
git clone https://github.com/yoonic/nicistore.git && nicistore
# Install
npm install
# Build
npm run build
# Run your server
npm run dev
# Redirect all request from Port 80 to Port 3000 where nicistore is listening
# http://stackoverflow.com/questions/16573668/best-practices-when-running-node-js-with-port-80-ubuntu-linode
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment