Skip to content

DaleWebb/io.stalk.admin

 
 

Repository files navigation

stalk.io admin

admin.stalk.io is a realtime communication service between operators and customers. admin.stalk.io run on the basis of XPUSH (eXtensional PUSH)

1. Prepare

To use the xpus-link is, nodejs, mongoDB, angular-fullstack is required .

nodejs

nodejs installation by referring to Download and unzip the nodejs.

mkdir -p $HOME/xpush
cd $HOME/xpush
wget http://nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz
tar zvf node-v0.12.7-linux-x64.tar.gz

Set the PATH environment variable so that you can use the node and npm to global.

PATH=$HOME/xpush/node-v0.12.7-linux-x64/bin:$PATH

mongoDB

Install and run mongoDB with reference mongoDB installation.

The follow is the code to install and run mongoDB 2.6.4

cd $HOME/xpush
wget --no-check-certificate https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.4.tgz
tar xzf mongodb-linux-x86_64-2.6.4.tar.gz

cd mongodb-linux-x86_64-2.6.4

mkdir db mkdir logs bin/mongod --fork --dbpath db --logpath logs

angular-fullstack

angular-fullstack requires several modules.

Install yo, grunt-cli, bower, and generator-angular-fullstack

npm install -g yo grunt-cli bower generator-angular-fullstack
git clone https://github.com/xpush/xpush-link.git
cd xpush-link

Install modules

bower install
npm install

2. Create config file

config.js

module.exports = {

  // MongoDB connection options
  mongo: {
    uri: 'mongodb://127.0.0.1/STALK'
  },
  
  // Session Server url of XPUSH
  xpush: {
    url: "http://127.0.0.1:8000",
    A: "STALK"
  }
};

3. Run your application

Run Server

grunt serve --config config.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.3%
  • HTML 34.3%
  • CSS 10.0%
  • Other 0.4%