Expanding documentation with more details for Maps, Zim, Primary-secondary-tertiary, and much more.

This commit is contained in:
Roland 2023-11-22 17:04:12 -07:00
parent b20be7e026
commit 5fbbc04961
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
17 changed files with 183 additions and 17 deletions

View file

@ -1,14 +1,21 @@
# Overview of WROLPi Systems
* WROLPi is based off [Debian OS](https://debian.org) and [Raspberry Pi OS](https://www.raspberrypi.com/software/)
* WROLPi has 4 user-facing services:
* [API](#api)
* [App](#app)
* [Map](#map)
* [Zim](#zim)
* WROLPi has several user-facing services:
* [Web](#web) (`:80`)
* [API](#api) (`:8081`)
* [App](#app) (`:8082`)
* [Map](#map) (`:8084`)
* [Zim](#zim) (`:8085`)
* [Help](#help) (`:8086`)
## Services
### Web
The nginx service which facilitates communication between the other services (especially in the docker containers in
the development environment.)
### API
| Software Project | Purpose |
@ -39,15 +46,46 @@
### Map
| Software Project | Purpose |
|-------------------------------------------------|------------------------------------------|
| [OpenStreetMap](https://www.openstreetmap.org/) | Provides the Map data |
| [osmium](https://osmcode.org/osmium-tool/) | Used to merge map PBF files. |
| [osm2pgsql](https://osm2pgsql.org/) | Used to import PBF files into Postgresql |
| Software Project | Purpose |
|-------------------------------------------------|-------------------------------------------|
| [OpenStreetMap](https://www.openstreetmap.org/) | Provides the Map data. |
| [osmium](https://osmcode.org/osmium-tool/) | Used to merge map PBF files. |
| [osm2pgsql](https://osm2pgsql.org/) | Used to import PBF files into Postgresql. |
### Zim
| Software Project | Purpose |
|-------------------------------------------------------|-------------------------------|
| [Kiwix](https://kiwix.org) | Provides the ZIM files |
| [Kiwix Server](https://github.com/kiwix/kiwix-tools/) | Hosts the ZIM files interface |
| Software Project | Purpose |
|-------------------------------------------------------|--------------------------------|
| [Kiwix](https://kiwix.org) | Provides the ZIM files. |
| [Kiwix Server](https://github.com/kiwix/kiwix-tools/) | Hosts the ZIM files interface. |
### Help
| Software Project | Purpose |
|-----------------------------------|--------------------------------------------|
| [Mkdocs](https://www.mkdocs.org/) | Serves these Markdown documentation files. |
## Development Only Services
If using the Docker containers (the development environment), you may have additional services:
* [Web](#development-web) (`:8080`)
* [Archive](#archive) (`:8083`)
### Development Web
| Software Project | Purpose |
|-----------------------------|---------------------------------------------------------------|
| [nginx](https://nginx.org/) | Facilitates integration between development docker containers |
### Archive
Separation of the API and the Archive service is necessary to prevent an overly complex API docker container.
| Software Project | Purpose |
|------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
| [Python](https://python.org) | The language of the Archive service. |
| [Sanic](https://sanic.dev) | An async web app framework, used to facilitate archiving of webpage in the development environment. |
| [SingleFile](https://github.com/gildas-lormeau/SingleFile) | Used to create Archives. |
| [Readability](https://github.com/mozilla/readability) | Used to extract the article from an Archive. |
| [Chromium](https://chromium.org) | Used to create Archives. |

View file

@ -0,0 +1,12 @@
# Primary, Secondary, Tertiary.
WROLPI attempts to integrate all services in an easy to learn interface. But, if the React app is unavailable, secondary
and tertiary options to use your WROLPi may be available.
| Module | Primary | Secondary | Tertiary |
|----------|-----------|---------------------------------------------------------|-----------------------------------------------------|
| Videos | React App | VLC application | Subtitle files can be opened with a text editor. |
| Archives | React App | Open Archive files directly with Chromium | Readability files can be opened with a text editor. |
| Map | React App | Map is directly accessible on port `:8084` | None |
| Zim | React App | Kiwix server is directly accessible on port `:8085` | Kiwix application |
| Help | React App | Markdown files are available in `/opt/wrolpi-help/docs` | None |