sdk

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2023 License: Apache-2.0

README

Foliage SDK

Foliage Logo

Foliage is a collaborative application platform built upon a distributed graph database, providing a unified and extensible environment for effortless automation, cross-domain connectivity, and high-performance, edge-friendly runtimes.

License Lint

Table of Contents

Introduction

Foliage is an open-source collaborative platform that uses a distributed graph database, offering a unified, extensible environment for automation, cross-domain connectivity, and high-performance, edge-friendly runtimes. It provides a robust foundation for IoT solutions, automation workflows, and edge computing applications.

Core Concepts

Abstract

Foliage introduces abstraction, where knowledge about complex systems converges into a unified space, promoting transparent understanding and blurring the boundary between system models and the system itself.

Abstract

Features

Foliage promotes transparency, consistency, and clarity among system components by consolidating knowledge from diverse domains into a unified space. It reveals hidden dependencies, simplifying system evaluation and relationship management.

Features

Click here to see all features.

Getting Started

Installation

To begin using Foliage, clone the repository:

git clone https://github.com/foliagecp/sdk.git

For detailed installation instructions and prerequisites, visit the official documentation.

Running Tests

Foliage provides a set of test samples to help you get familiar with the platform. Follow these steps to run them:

1. Navigate to tests:
cd tests
2. Build the tests runtime:
docker-compose build
3. Modify the .env file:

Customize the test environment by editing the .env file. For the basic test, find it at ./basic/.env.

4. Start the tests:
docker-compose up -d

To select a different test sample, set the TEST_NAME environment variable before running docker-compose up -d. The basic test sample starts by default.

5. Stop and clean up:

When you're done testing, stop and clean up the environment:

docker-compose down -v
Customization

Explore available test samples and customize them to gain insights into Foliage's development principles. Refer to basic test sample documentation.

For statefun logic definition, consider using plugins like JavaScript.

Development

Working with the SDK

Use SDK To develop applications with Foliage:

go get github.com/foliagecp/sdk
  • Learn to work with the graph here
  • Explore Foliage's JSON Path Graph Query Language (JPGQL) here
  • Find out how to write your own application here
  • Measure performance with guidance here

Technology Stack

Foliage relies on a versatile technology stack that includes:

  • Backend
    • Jetstream NATS
    • Key/Value Store NATS
    • WebSocket NATS
    • GoLang
    • JavaScript (V8)
  • Frontend
    • React
    • TypeScript/JavaScript
    • WebSocket
  • Common
    • Docker
    • Docker Compose

Learn more about our technology choices.

Roadmap

Check out our Roadmap for more upcoming features and enhancements.

References

License

Unless otherwise noted, the Foliage source files are distributed under the Apache Version 2.0 license found in the LICENSE file.

Contribution

Foliage welcomes contributions from the open-source community. Join us in building a collaborative application platform that empowers developers worldwide!

Directories

Path Synopsis
embedded
graph/common
Foliage graph store common package.
Foliage graph store common package.
graph/crud
Foliage graph store crud package.
Foliage graph store crud package.
graph/debug
Foliage graph store debug package.
Foliage graph store debug package.
graph/jpgql
Foliage graph store jpgql package.
Foliage graph store jpgql package.
Foliage primary statefun package.
Foliage primary statefun package.
cache
Foliage statefun cache package.
Foliage statefun cache package.
plugins
Foliage statefun plugins package.
Foliage statefun plugins package.
system
Foliage primary statefun system package.
Foliage primary statefun system package.
Foliage tests main package.
Foliage tests main package.
basic
Foliage basic test package.
Foliage basic test package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL