This is a whole LoRa system.
lora-system supports two methods for installation.
This system requires the following components imperatively.
- Node.js (>=8)
- MySQL (>=5.7)
- Redis
- Kafka
- MongoDB
-
Install all the components listed in System Requirements.
-
Create a new database in MySQL.
-
Start Kafka, Redis and MongoDB in the background.
-
Clone this repo into a directory:
git clone https://github.com/xisiot/lora-system.git --recursive
cd lora-system
-
Install all Node.js dependencies by
npm install
. -
Copy a local
config.json
fromconfig_template.json
:
cp config_template.json config.json
-
Modify the configurations of kafkaHost, MySQL and other customized fields in
config.json
. -
Use
start.sh
to start LoRa system:
./start.sh
This system requires the following components imperatively.
- Docker
-
Install all the components listed in System Requirements
-
Pull the xisiot/lora-system docker image:
docker pull xisiot/lora-system:latest
- Run the xisiot/lora-system image in a container, mapping your machine’s port 12234 to the container’s published port 12234 using
-p
:
docker run -it --name="test" -p 12234:12234/udp -p 3000:3000/tcp xisiot/lora-system:latest /bin/bash
- Start MySQL, Redis, MongoDB and Kafka in the background:
service mysql start
redis-server &
mongod -config /etc/mongod.conf &
cd root/kafka
./bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
./bin/kafka-server-start.sh -daemon config/server.properties
- Use
start.sh
to start LoRa system:
cd ../lora/lora-system
./start.sh
LoRa system is distributed under the GPL-3.0 license. See also License