Task #2889 ยป README.md
ndn-atmos
This software is designed to support ongoing climate model research at Colorado State University,
Berkeley and other institutes.
This software provides API interface to publish, query and retrieve Climate datasets using NDN.
Dependencies
The ndn-atmos is built based on several libraries:
- boost (Minimum required boost version is 1.48.0)
- jsoncpp 1.6.0 (https://github.com/open-source-parsers/jsoncpp.git)
- mysql 5.6.23 (http://www.mysql.com/)
- ndn-cxx (https://github.com/named-data/ndn-cxx.git)
- ChronoSync (https://github.com/named-data/ChronoSync.git)
The ndn-cxx and ChronoSync need some other prerequisites.
For OSX, the prerequisites can be installed using Homebrew:
brew install boost sqlite3 mysql jsoncpp
For Ubuntu, use the command below to install the prerequisites:
sudo apt-get install libboost-all-dev libssl-dev libcrypto++-dev \
libsqlite3-dev libmysqlclient-dev libjsoncpp-dev \
protobuf-compiler libprotobuf-devFor Fedora, use the command below to install the prerequisites:
sudo yum install boost-devel openssl-devel cryptopp-devel sqlitei3x-devel \
mysql-devel jsoncpp-devel protobuf-compiler protobuf-devel
Installing ndn-cxx
download ndn-cxx source code and decompress it. Use the link below for ndn-cxx code:
in library folder, build from the source code
./waf configure
./waf
./waf install
Installing ChronoSync
- download ChronoSync source code and decompress it. Use the link below for the ChronoSync code:
https://github.com/named-data/ChronoSync/archive/master.zip
in library folder, build from the source code
./waf configure
./waf
./waf install
Installing ndn-atmos
Follow the steps below to compile and install ndn-atmos:
download the ndn-atmos source code. Use the command below:
build ndn-atmos in the project folder
./waf configure
./waf
./waf installto test ndn-atmos, please use the steps below:
./waf configrue --with-tests
./waf
./build/catalog/unit-tests
Running ndn-atmos
Starting NFD
Users must install NFD to enable NDN running.
download NFD source code and decompress it. Use the link below for the NFD code:
build NFD
./waf configure
./waf
./waf installrun NFD
nfd-start
Launching atmos-catalog
make sure database is initialized
create catalog configuration file
cp /usr/local/etc/ndn-atmos/catalog.conf.sample /usr/local/etc/ndn-atmos/catalog.conf
modify the catalog configuration file as you need
run ndn-atmos
atmos-catalog
Starting front end
open the client folder in ndn-atmos
checkout and decompress the ndn-js in the client folder. Use the linke blow:
start python simple server in the client folder
python -m SimpleHTTPServer
open project query page in a web browser