Coder Social home page Coder Social logo

wazicloud's Introduction

travis

WAZIUP platform

The WAZIUP platform is an IoT Big Data platform. It allows to create IoT applications and deploy them both in the Cloud and in the local gateway.

For information and documentation: https://www.waziup.io

Install

To install the platform, first clone it:

git clone https://github.com/Waziup/Platform.git
cd Platform

Then pull the images and run it:

sudo chmod 777 data/* -R
docker-compose pull
docker-compose -f docker-compose.yml -f docker-compose-first-run.yml up

This will create the default users and configuration for Waziup. Once the boot up finished, you can then access Waziup platform on http://localhost:3000

To start the platform in the future, just type:

docker-compose up

Develop

To get the source code for each submodules, you need to clone with --recursive:

# clone the platform with submodules
git clone --recursive [email protected]:Waziup/Platform.git
cd Platform
git submodule update --remote --recursive
docker-compose build

Tests

You can run the test campain like this:

./run_tests.sh

Or view the API documentation:

firefox localhost:800/docs

Backup

mysqldump is used to backup user database.

mysqldump -h dev.waziup.io -P 3306 -u root -proot_password --all-databases > /var/backups/mysqlbackups/`date +"%m-%d-%y"`

Restore the data:

mysql -u root -proot_password -h 127.0.0.1 <  /var/backups/mysqlbackups/`date +"%m-%d-%y"`

mongodump is used to backup sensor data:

mongodump --host dev.waziup.io --port 27017 --out /var/backups/mongobackups/`date +"%m-%d-%y"`

This command restores it in the local instance:

mongorestore /var/backups/mongobackups/`date +"%m-%d-%y"`

Debug

To export the keycloak configuration, run:

docker-compose run --entrypoint "/opt/jboss/tools/docker-entrypoint.sh -b 0.0.0.0 -Dkeycloak.migration.action=export -Dkeycloak.migration.provider=dir -Dkeycloak.migration.dir=/opt/jboss/keycloak/standalone/data/" keycloak
#Stop keycloak when start-up is finished
cd data/keycloak
mv master-realm.json master-users-0.json waziup-realm.json waziup-users-0.json ../../keycloak/imports

Rebuild Keycloak image:

docker-compose build keycloak
docker-compose push keycloak

Copyright

Copyright Waziup consortium 2018.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

wazicloud's People

Contributors

cdupont avatar pandaconstantin avatar joelbudu avatar henokzion avatar diopbabacaredu avatar ousmaneo avatar malishahi avatar espritdg avatar fizarbd avatar zeisberg avatar sabrine2020 avatar diopbabacar avatar j-forster avatar arbiswas avatar bures 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.