Skip to content

Latest commit

 

History

History
executable file
·
78 lines (57 loc) · 1.32 KB

File metadata and controls

executable file
·
78 lines (57 loc) · 1.32 KB

phpNemoServer Readme

phpNemoServer is a set of PHP-scripts to manage JNTP Server.
http://news.nemoweb.net/

Copyright

Copyright (C) 2013-2016 Julien Arlandis <julien.arlandis_at_gmail.com>

License

http://www.gnu.org/licenses/agpl.txt

Requirements

  • PHP 5.2 or later
  • MongoDB 2.4 or later
  • libcurl

Support

See reference about server support forums under <news:nemo.dev.serveur>
See reference about client support forums under <news:nemo.dev.client>

Installation

  • Go to your website root directory.
  • Install the most popular JNTP client (Nemo) :
git clone https://github.com/Julien-Arlandis/NemoClient.git .
  • Install JNTP server :
git clone https://github.com/Julien-Arlandis/phpNemoServer.git jntp

Upgrade Server

git pull

Export users to user.json file

mongoexport --db <database> --collection user --out user.json

Import users from user.json file

mongoimport --db <database> --collection user --file user.json
mongo <<EOF
use <database>
db.counters.findAndModify({
    query: {"_id":"UserID"},
    update: {"seq":db.user.find().sort({"UserID":-1}).limit(1).next().UserID},
    upsert: true
});
EOF