Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeboothjr/rpi_node
A node application to get up and running with Raspberry Pi
https://github.com/jeboothjr/rpi_node
Last synced: about 1 month ago
JSON representation
A node application to get up and running with Raspberry Pi
- Host: GitHub
- URL: https://github.com/jeboothjr/rpi_node
- Owner: JEBoothjr
- License: mit
- Created: 2014-12-29T00:10:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-19T18:52:37.000Z (almost 10 years ago)
- Last Synced: 2023-02-26T05:04:58.578Z (almost 2 years ago)
- Language: JavaScript
- Size: 327 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
rpi_node
========A node application to get up and running with Raspberry Pi and Cassandra
## Install node.js
```sh
ssh [email protected] (Your Paspberry Pi ip address)
``````sh
wget http://nodejs.org/dist/v0.10.35/node-v0.10.35.tar.gz
tar xvf node-v0.10.35.tar.gz
cd node-v0.10.35
./configure
make (It takes a while to compile - 2+ hours)
sudo make install
```## Install Java (If necessary as it comes preinstalled with Raspbian, now)
```sh
sudo apt-get update && sudo apt-get install oracle-java7-jdk
``````sh
nano ~/.bashrc
```Add the following lines.
```sh
export JAVA_HOME="/usr/lib/jvm/jdk-7-oracle-armhf"
export PATH=$PATH:$JAVA_HOME/bin
```## Install Cassandra
```sh
http://downloads.datastax.com/community/dsc-cassandra-2.1.2-bin.tar.gz
tar -zxvf dsc-cassandra-2.1.2-bin.tar.gz
sudo ./dsc-cassandra-2.1.2/bin/cassandra
```Edit the ./conf/cassandra.yaml and the the 'broadcast_rpc_address' to the ipaddress of the Raspberry Pi. You should be able to connect DataStax DevCenter to it.
## Create Cassandra Keyspace and Tables
```javascript
node ./server/tools/CQL -s -f ../cql/resetAppKeyspace.cql
``````javascript
node ./server/tools/CQL -s -f ../cql/setupDB.cql -k rpi
```## Run app
```sh
sudo node ./server/app.js
```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/JEBoothjr/rpi_node/trend.png)](https://bitdeli.com/free "Bitdeli Badge")