Coder Social home page Coder Social logo

abchow / pathstore-all Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pathstore/pathstore-all

0.0 1.0 0.0 156.54 MB

Edge Computing Framework

License: Apache License 2.0

Java 67.19% Shell 0.71% PowerShell 0.29% Python 6.93% Batchfile 0.50% CSS 0.23% HTML 19.39% JavaScript 1.39% Thrift 0.56% Dockerfile 0.01% TypeScript 2.77% SCSS 0.03%

pathstore-all's Introduction

 ________  ________  _________  ___  ___  ________  _________  ________  ________  _______      
|\   __  \|\   __  \|\___   ___\\  \|\  \|\   ____\|\___   ___\\   __  \|\   __  \|\  ___ \     
\ \  \|\  \ \  \|\  \|___ \  \_\ \  \\\  \ \  \___|\|___ \  \_\ \  \|\  \ \  \|\  \ \   __/|    
 \ \   ____\ \   __  \   \ \  \ \ \   __  \ \_____  \   \ \  \ \ \  \\\  \ \   _  _\ \  \_|/__  
  \ \  \___|\ \  \ \  \   \ \  \ \ \  \ \  \|____|\  \   \ \  \ \ \  \\\  \ \  \\  \\ \  \_|\ \ 
   \ \__\    \ \__\ \__\   \ \__\ \ \__\ \__\____\_\  \   \ \__\ \ \_______\ \__\\ _\\ \_______\
    \|__|     \|__|\|__|    \|__|  \|__|\|__|\_________\   \|__|  \|_______|\|__|\|__|\|_______|
                                            \|_________|                                        

Actions Status

Usage

In order to startup a PathStore network you need to do the following:

mvn package
java -jar pathstore-startup-utility/target/main.jar

The first prompt will ask you for the directory that PathStore is in. Provide the utility with the absolute path on your machine to the repository code (i.e. /home/myles/pathstore-all)

Follow the instructions on the screen and you will have deployed the first node in your network.

After this is complete you can naviagte to the ip address of the machine you provided during start up on port 8080 in your web browser of choice to make changes to your network (scale, application creation / deployment, health monitoring, etc)

Server Assumptions

Every machine that runs any pathstore code should have the following:

Docker CE (Version: Docker version 19.03.13, build 4484c46d9d)

sudo apt-get install docker.io

User account with docker group

# Create user with docker admin privileges
sudo adduser pathstore-installer
sudo usermod -aG docker pathstore-installer

# Creates the certs directory for the networks private registry
sudo mkdir -p /etc/docker/certs.d
sudo chown root:docker /etc/docker/certs.d
sudo chmod 775 /etc/docker/certs.d

Maven (Version: Apache Maven 3.6.0)

sudo apt-get install maven

Java (Version: OpenJDK 11.0.6)

sudo apt-get install openjdk-11-jdk

Client Driver

In order to use PathStore you must have the client driver imported as a dependency in your maven project. First you must run the following commands in the root directory of the repository on your development machine

mvn clean && mvn install package

Then in your maven project you can include the driver by

<dependency>
    <groupId>smartpath</groupId>
    <artifactId>pathstore</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

For an example of api usage see ReadWriteTest

Client Properties File

An example client properties file for a server at 10.70.20.95 on port 1099, with application name pathstore_demo and same master password. This file needs to be present on the machine running any client appication in /etc/pathstore/pathstore.properties

Role=CLIENT
GRPCIP=10.70.20.95
GRPCPort=1099
applicationName=pathstore_demo
applicationMasterPassword=pathstore_demo

pathstore-all's People

Contributors

ideaeclipse avatar delara avatar kianoosh76 avatar

Watchers

 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.