Skip to content

Commit

Permalink
Updating documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Feb 26, 2024
1 parent cc4c92d commit 22e4c1b
Show file tree
Hide file tree
Showing 9 changed files with 117 additions and 948 deletions.
915 changes: 10 additions & 905 deletions .editorconfig

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions src/FastyBird/Plugin/WebServer/.github/workflows/wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "wiki"

on:
push:
branches:
- "main"

jobs:
deploy:
name: "Deploy docs to wiki"
runs-on: "ubuntu-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Deploy to Wiki"
uses: "SwiftDocOrg/github-wiki-publish-action@v1"
with:
path: "docs"
env:
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
5 changes: 2 additions & 3 deletions src/FastyBird/Plugin/WebServer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ composer require fastybird/web-server-plugin

## Documentation

Learn how to build and handle http api requests
in [documentation](https://github.com/FastyBird/web-server-plugin/blob/main/docs/index.md).
:book: Learn how to build and handle http api requests in [documentation](https://github.com/FastyBird/web-server-plugin/wiki).

# FastyBird

Expand All @@ -54,7 +53,7 @@ FastyBird is an Open Source IOT solution built from decoupled components with po

## Documentation

Documentation is available on [docs.fastybird.com](https://docs.fastybird.com).
:book: Documentation is available on [docs.fastybird.com](https://docs.fastybird.com).

## Contributing

Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
# Quick start
<p align="center">
<img src="https://github.com/fastybird/.github/blob/main/assets/repo_title.png?raw=true" alt="FastyBird"/>
</p>

The purpose of this plugin is to create php based web server for serving and handling API request and responses.
> [!IMPORTANT]
This documentation is meant to be used by developers or users which has basic programming skills. If you are regular user
please use FastyBird IoT documentation which is available on [docs.fastybird.com](https://docs.fastybird.com).

***
# About Plugin

## Installation
The purpose of this plugin is to create php based web server for serving and handling API request and responses.

The best way to install **fastybird/web-server-plugin** is using [Composer](http://getcomposer.org/):
This library has some services divided into namespaces. All services are preconfigured and imported into application
container automatically.

```sh
composer require fastybird/web-server-plugin
```
\FastyBird\Plugin\RedisDb
\Commands - Console commands to run WS server
\Events - Events which are triggered by plugin and other services
\Middleware - Server basic middlewares
\Subscribers - Plugin subscribers which are subscribed to main sockets library
```

After that, you have to register plugin in *config.neon*.
All services, helpers, etc. are written to be self-descriptive :wink:.

```neon
extensions:
fbWebServerPlugin: FastyBird\Plugin\WebServer\DI\WebServerExtension(%consoleMode%)
```
## Using Plugin

The plugin is ready to be used as is. Has configured all services in application container and there is no need to develop
some other services or bridges.

This plugin is dependent on other extensions, and they have to be registered too

Expand All @@ -28,9 +37,7 @@ extensions:
contributteEvents: Contributte\EventDispatcher\DI\EventDispatcherExtension
```

> For information how to configure these extensions please visit their doc pages
## Configuration
## Plugin Configuration

This plugin has some configuration options:

Expand Down Expand Up @@ -246,7 +253,3 @@ your responses and document to entity hydrator

And last but not least, [fastybird/simple-auth](https://github.com/FastyBird/simple-auth). With this package you could
create basic token based authentication and authorization.

***
Homepage [https://www.fastybird.com](https://www.fastybird.com) and
repository [https://github.com/FastyBird/web-server-pluging](https://github.com/FastyBird/web-server-plugin).
8 changes: 8 additions & 0 deletions src/FastyBird/Plugin/WebServer/docs/_Footer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
> [!TIP]
If you find incorrect or missing information, feel free to notify us. You could use the [issue tracker](https://github.com/FastyBird/fastybird/issues)
or [mail](mailto:code@fastybird.com) or [X network](https://x.com/fastybird) for any idea that can improve the project.
Thank you for testing, reporting and contributing.

***
Homepage [https://www.fastybird.com](https://www.fastybird.com) and
repository [https://github.com/fastybird/web-server-plugin](https://github.com/fastybird/web-server-plugin).
22 changes: 22 additions & 0 deletions src/FastyBird/Plugin/WsServer/.github/workflows/wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "wiki"

on:
push:
branches:
- "main"

jobs:
deploy:
name: "Deploy docs to wiki"
runs-on: "ubuntu-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Deploy to Wiki"
uses: "SwiftDocOrg/github-wiki-publish-action@v1"
with:
path: "docs"
env:
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
4 changes: 2 additions & 2 deletions src/FastyBird/Plugin/WsServer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ composer require fastybird/ws-server-plugin

## Documentation

Learn how to start server, consume & call RPC messages in [documentation](https://github.com/FastyBird/ws-server-plugin/blob/main/docs/index.md).
:book: Learn how to start server, consume & call RPC messages in [documentation](https://github.com/FastyBird/ws-server-plugin/wiki).

# FastyBird

Expand All @@ -51,7 +51,7 @@ FastyBird is an Open Source IOT solution built from decoupled components with po

## Documentation

Documentation is available on [docs.fastybird.com](https://docs.fastybird.com).
:book: Documentation is available on [docs.fastybird.com](https://docs.fastybird.com).

## Contributing

Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
# Quick start
<p align="center">
<img src="https://github.com/fastybird/.github/blob/main/assets/repo_title.png?raw=true" alt="FastyBird"/>
</p>

The purpose of this plugin is to create php based WS server for serving and handling sockets real time connections.
> [!IMPORTANT]
This documentation is meant to be used by developers or users which has basic programming skills. If you are regular user
please use FastyBird IoT documentation which is available on [docs.fastybird.com](https://docs.fastybird.com).

***
# About Plugin

## Installation
The purpose of this plugin is to create php based WS server for serving and handling sockets real time connections.

The best way to install **fastybird/ws-server-plugin** is using [Composer](http://getcomposer.org/):
This library has some services divided into namespaces. All services are preconfigured and imported into application
container automatically.

```sh
composer require fastybird/ws-server-plugin
```
\FastyBird\Plugin\RedisDb
\Commands - Console commands to run WS server
\Events - Events which are triggered by plugin and other services
\Subscribers - Plugin subscribers which are subscribed to main sockets library
```

After that, you have to register plugin in *config.neon*.
All services, helpers, etc. are written to be self-descriptive :wink:.

```neon
extensions:
fbWsServerPlugin: FastyBird\Plugin\WsServer\DI\WsServerExtension
```
## Using Plugin

The plugin is ready to be used as is. Has configured all services in application container and there is no need to develop
some other services or bridges.

This plugin is dependent on other extensions, and they have to be registered too

Expand All @@ -29,9 +37,7 @@ extensions:
ipubWebsocketsWamp: IPub\WebSocketsWAMP\DI\WebSocketsWAMPExtension
```

> For information how to configure these extensions please visit their doc pages
## Configuration
## Plugin Configuration

This plugin has some configuration options:

Expand All @@ -54,7 +60,3 @@ This plugin has implemented command interface for running server. All you have t
```sh
<app_root>/vendor/bin/fb-console fb:ws-server:start
```

***
Homepage [https://www.fastybird.com](https://www.fastybird.com) and
repository [https://github.com/FastyBird/ws-server-pluging](https://github.com/FastyBird/ws-server-plugin).
8 changes: 8 additions & 0 deletions src/FastyBird/Plugin/WsServer/docs/_Footer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
> [!TIP]
If you find incorrect or missing information, feel free to notify us. You could use the [issue tracker](https://github.com/FastyBird/fastybird/issues)
or [mail](mailto:code@fastybird.com) or [X network](https://x.com/fastybird) for any idea that can improve the project.
Thank you for testing, reporting and contributing.

***
Homepage [https://www.fastybird.com](https://www.fastybird.com) and
repository [https://github.com/fastybird/ws-server-plugin](https://github.com/fastybird/ws-server-plugin).

0 comments on commit 22e4c1b

Please sign in to comment.