mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
31 lines
896 B
Bash
31 lines
896 B
Bash
#!/bin/bash
|
|
|
|
# README
|
|
# This will install nodejs and npm on your system,
|
|
# should work on most places other than Windows.
|
|
# Copy paste and run each line into your terminal.
|
|
# If you are on Windows, http://nodejs.org/download/ has
|
|
# an installer that will automatically do it for you.
|
|
# curl -o- https://raw.githubusercontent.com/amark/gun/master/examples/install.sh | bash
|
|
|
|
#debian/ubuntu
|
|
su -
|
|
apt-get install sudo -y
|
|
sudo apt-get update -y
|
|
sudo apt-get install curl git git-core -y
|
|
#fedora/openSUSE
|
|
sudo yum check-update -y
|
|
sudo yum install curl git git-core -y
|
|
|
|
# install nodejs
|
|
git clone http://github.com/isaacs/nave.git
|
|
sudo ./nave/nave.sh usemain stable
|
|
# If you just want nodejs and npm but not gun, stop here.
|
|
|
|
npm install gun
|
|
|
|
# to run the gun examples:
|
|
cd ./node_modules/gun
|
|
npm install .
|
|
sudo /usr/local/bin/node ./examples/http.js 80 # change `80` to `8765` for development purposes.
|