For more information, see http://smartplatforms.org
-
Update apt-get manifests:
$ sudo apt-get update
-
Install PostgreSQL:
$ sudo apt-get install postgresql $ sudo apt-get install libpq-dev
-
Add the 'smart' user:
$ sudo su postgres $ createuser --superuser smart $ psql $ postgres-# \password smart $ postgres-# \q $ exit
-
Edit /etc/postgresql/9.1/main/pg_hba.conf:
change local all all xxx to local all all md5 then save
-
Restart PostgreSQL:
$ sudo service postgresql restart
-
Install git:
$ sudo apt-get install git
-
Install node.js:
$ sudo add-apt-repository ppa:chris-lea/node.js $ sudo apt-get update $ sudo apt-get install g++ $ sudo apt-get install make $ sudo apt-get install nodejs
-
Pick where you would like to place the project files:
$ cd /project/files/location
-
Clone the project files to that location:
$ git clone https://github.com/chb/dm-semantic-service.git
-
Install the production, staging, or development environment ("xxx" = "prod"|"stage"|"dev"):
$ cd semantic $ sudo ./install.sh xxx
-
Test production by browsing to http://localhost or staging by browsing to http://localhost:8000 -- the semantic services are self-documenting.