This commit is contained in:
blackorbird
2019-04-18 11:19:12 +08:00
parent f6c2839353
commit b3c7e3e449
495 changed files with 73786 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
file should be saved in project
srvr.js
files in views folder

View File

@@ -0,0 +1,15 @@
npm install express --save
npm install ejs --save
npm install express-fileupload --save
npm install dateformat --save
npm install body-parser --save
npm install multer --save
npm install file-base64 --save
npm install dnsd --save
npm install ip --save
npm install cookies --save
npm install --save moment
npm install --save express ejs express-fileupload dateformat body-parser multer file-base64 dnsd
npm install --save forever -g

View File

@@ -0,0 +1,21 @@
#ubuntu 16.04
apt-get update
apt-get upgrade
# installing nodejs
sudo apt-get install nodejs
sudo apt-get install nodejs-legacy
#installing mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get install -y mongodb-org
echo "deb http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list

View File

@@ -0,0 +1,4 @@
sudo sed -i 's/^dns=dnsmasq/#&/' /etc/NetworkManager/NetworkManager.conf
sudo service network-manager restart
sudo service networking restart
sudo killall dnsmasq