Code Monkey home page Code Monkey logo

salemaljebaly / thingsboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thingsboard/thingsboard

0.0 0.0 0.0 242.25 MB

Open-source IoT Platform - Device management, data collection, processing and visualization.

Home Page: https://thingsboard.io

License: Apache License 2.0

Shell 0.32% JavaScript 2.54% Python 0.04% Java 59.75% TypeScript 25.26% CSS 0.01% HTML 9.26% PLpgSQL 0.28% Batchfile 0.02% FreeMarker 0.25% Dockerfile 0.06% SCSS 2.22%

thingsboard's Introduction

ThingsBoard

This repository contains the ThingsBoard Community Edition. Follow the instructions below to set up your development environment.

Cloning the Repository

git clone [email protected]:lamah-co/thingsboard.git
cd thingsboard
mvn clean install -DskipTests

Installing Java with SDKMAN

curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"

Installing Java

sdk install java 11.0.23-tem

Setting Up PostgreSQL with Docker Compose

services:
  postgres:
    image: postgres:latest
    container_name: thingsboard-postgres
    environment:
      POSTGRES_DB: thingsboard
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
    ports:
      - "5432:5432"
    volumes:
      - postgres_data:/var/lib/postgresql/data

volumes:
  postgres_data:

Start the PostgreSQL container:

  docker-compose up -d

Connecting to PostgreSQL

Connect to the PostgreSQL container and create the ThingsBoard database:

psql -U postgres -d postgres -h 127.0.0.1 -W
CREATE DATABASE thingsboard;
\q

Creating the Database Schema

cd thingsboard/application/target/bin/install
chmod +x install_dev_db.sh
./install_dev_db.sh # On Linux
install_dev_db.bat # Windows

Fixing Logging Issues

If you encounter the following error:

/var/log/thingsboard/install.log (No such file or directory)

Fix it by running:

sudo mkdir /var/log/thingsboard sudo chmod 777 /var/log/thingsboard

Running the Development Environment

cd thingsboard/ui-ngx
mvn clean install -P yarn-start

Running the Server-Side Container

You can run the server in two ways:

Option 1: Using the Command Line

cd thingsboard
java -jar application/target/thingsboard-${VERSION}-boot.jar

Option 2: Using Visual Studio Code (Recommended)

1.	Install the Maven for Java Extension:
•	Extension ID: vscjava.vscode-maven
2.	Install the Spring Boot Tools Plugin Extension:
•	Extension ID: vmware.vscode-spring-boot
3.	Open the `ThingsboardServerApplication main method located in org.thingsboard.server` and run the server in Visual Studio Code.

thingsboard's People

Contributors

ikulikov avatar ashvayka avatar volodymyr-babak avatar vvlladd28 avatar viacheslavklimov avatar yevhenbondarenko avatar nickas21 avatar smatvienko-tb avatar shvaykad avatar artemdzhereleiko avatar dashevchenko avatar deaflynx avatar imbeacon avatar andriilandiak avatar mrkartoshka avatar rusikv avatar vzikratyi-tb avatar dmitriymush avatar dskarzh avatar seraphym-tuhai avatar kalutkaz avatar dmytro-landiak avatar chantsovaekaterina avatar artemhalushko avatar viktorbasanets avatar mp-loki avatar vparomskiy avatar andrewvolosytnykhthingsboard avatar bohdansmetanyuk avatar desoliture1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.