forked from thingsboard/thingsboard
-
Notifications
You must be signed in to change notification settings - Fork 1
Setup
paresh brahmacharimayum edited this page Oct 18, 2020
·
12 revisions
-
Set-up Ubuntu 1804/2004 Linux desktop environment
- WSL2 for Linux
- Dual boot with Window
- VirtualBox
-
Install JDK
sudo apt update
sudo apt install openjdk-8-jdk
java -version
- Install SDKMAN
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
- Install maven
sdk install maven
# Get code
# upload SSH key to Github account and clone the app
git clone [email protected]:Nibiaa-Devices-IoT-platforn/thingsboard.git
# if not and don't want to, use HTTPS
git clone https://github.com/Nibiaa-Devices-IoT-platforn/thingsboard.git
# Install dependencies
cd thingsboard
mvn clean install -DskipTests
# Set-up DB
psql -U postgres -d postgres -h 127.0.0.1 -W
CREATE DATABASE thingsboard;
\q
# Seed DB
cd application/target/bin/install
sudo chmod 755 install_dev_db.sh
sudo ./install_dev_db.sh
# Run server (from the root directory of the app) on http://localhost:8080
java -jar application/target/thingsboard-3.2.0-SNAPSHOT-boot.jar
# And, optionally run server with hot UI reloading on http://localhost:4200
cd ui-ngx
mvn clean install
yarn start