ostis-apps / ostis-example-app

Initial project for application on OSTIS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSTIS example app

license

About

OSTIS example app is an ostis-system based on ostis-web-platform and designed with OSTIS Technology.

0.9.0 version allows communication with the knowledge base via JSON-based Websocket protocol.

Installation

For Ubuntu/Debian based distros:

git clone https://github.com/ostis-apps/ostis-example-app.git
cd ostis-example-app
./scripts/install.sh

Build knowledge base

Before first launch or after changes in KB you should build knowledge base.

./scripts/build_kb.sh

Usage

To launch system you should start sc-server:

./scripts/run_sc_server.sh

After that launch sc-web interface:

./scripts/run_sc_web.sh

To check that everything is fine open localhost:8000 in your browser.

Project Structure

Knowledge Base

kb is the place for the knowledge base source text files of your app. Put your .scs and .gwf files here.

Problem Solver

problem-solver is the place for the problem solver of your app. Put your agents here. After changes in problem-solver you should rebuild it:

Use scp_stable branch for the development of agents on SCP.
Use 0.5.0, 0.6.0, 0.7.0, 0.8.0 or 0.9.0 branch for the development of agents on C++. You can see an example module with a C++ agent here
Use prerelease-0.10.0 branch for the latest versions of ubuntu and macOS.

After updating your C++ code you need to rebuild problem-solver:

./scripts/build_problem_solver.sh

To enable DEBUG set fields in ostis-example-app.ini:

log_type = Console
log_file = sc-memory.log
log_level = Debug

Interface

interface is the place for your interface modules.

To learn more about creating web components for the new web interface version follow this link

Scripts

scripts is the place for scripts files of your app. There are a few scripts already:

  • build_problem_solver.sh [-f, --full]

Build the problem-solver of your app. Use an argument -f or --full for a complete rebuild of the problem-solver with the deleting of the ostis-web-platform/sc-machine/bin and ostis-web-platform/sc-machine/build folders.

  • install_submodules.sh

Install or update the OSTIS platform.

Author

Show your support

Give us a ⭐️ if you've liked this project!

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

📝 License

This project is MIT licensed.

About

Initial project for application on OSTIS

License:MIT License


Languages

Language:C++ 56.5%Language:Shell 25.7%Language:CMake 9.5%Language:Dockerfile 8.2%