-
Notifications
You must be signed in to change notification settings - Fork 23
Installation orig
Lior Kesos edited this page Jan 15, 2017
·
1 revision
- install node
wget -qO- https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get install --yes nodejs
- Install npm (version 2)
sudo npm -g install npm@latest-2
- Install mongodb
sudo apt-get install --yes mongodb
- Install git
sudo apt-get install --yes git
- Install bower
sudo npm install -g bower
- Install gulp
sudo npm install -g gulp
- mean
touch /home/--user name--/.mean
- Run icu
git clone --branch 0.-- https://github.com/linnovate/icu.git Desktop/icu
npm install
node tools/scripts/postinstall.js
bower install
gulp sass
In:
/home/as/Desktop/icu/packages/custom/icu/server/routes/icu.js
Mark:
//app.route(/^((?!\/hi\/).)*$/).all(authorization);
In:
/home/as/Desktop/icu/packages/custom/general/server/routes/users.js
Change From:
//apiUri = config.api.uri
To:
apiUri = "http://localhost:3000"
create fake project and discussion:
mongo
use icu-dev
db.projects.insert({ "_id" : ObjectId("56bb61181f1ee3eccc4aa8a2"), "created" : ISODate("2016-01-17T19:57:08.483Z"), "status" : "new", "watchers" : [ ], "creator" : ObjectId("56b864f1d5deaea71307a815"), "update" : ISODate("2016-01-17T19:57:08.582Z"), "title" : "", "color" : "b9e67d", "__v" : 1 })
db.discussions.insert({ "_id" : ObjectId("56bb64ec1f1ee3eccc4aa8a3"), "title" : "some discussion", "created" : ISODate("2015-11-25T13:11:24.358Z"), "updated" : ISODate("2015-11-25T13:11:24.358Z"), "creator" : ObjectId("56b864f1d5deaea71307a815"), "whatchers" : [ ], "members" : [ ], "status" : "new", "circles" : [ "authenticated" ], "__v" : 0 })
- Install elasticsearch
sudo apt-get install openjdk-7-jre
wget https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.1.1/elasticsearch-2.1.1.deb
sudo dpkg --install elasticsearch-2.1.1.deb
- Install docker compose
- Clone root repository:
git clone git@github.com:linnovate/root.git
- Go to project folder:
cd root
- Run
sudo docker-compose up
. It will build image and start container. By default application exposed on port3100
To fix gyp and kerberos errors during mongoose installation:
sudo apt-get install libkrb5-dev