mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 11:17:46 +00:00
Update README
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
PostgSail is an open-source alternative to traditional vessel data management!
|
PostgSail is an open-source alternative to traditional vessel data management!
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<a href="https://github.com/xbgmsharp/postgsail/docs/"><strong>Explore the docs »</strong></a>
|
<a href="https://github.com/xbgmsharp/postgsail/blob/main/docs/README.md"><strong>Explore the docs »</strong></a>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<a href="https://iot.openplotter.cloud/demo">View Demo</a>
|
<a href="https://iot.openplotter.cloud/demo">View Demo</a>
|
||||||
@@ -68,7 +68,7 @@ It is all about SQL, object-relational, time-series, spatial databases with a bi
|
|||||||
PostgSail is an open-source alternative to traditional vessel data management.
|
PostgSail is an open-source alternative to traditional vessel data management.
|
||||||
It is based on a well known open-source technology stack, Signalk, PostgreSQL, TimescaleDB, PostGIS, PostgREST. It does perfectly integrate with standard monitoring tool stack like Grafana.
|
It is based on a well known open-source technology stack, Signalk, PostgreSQL, TimescaleDB, PostGIS, PostgREST. It does perfectly integrate with standard monitoring tool stack like Grafana.
|
||||||
|
|
||||||
To understand the why and how, you might want to read [Why.md](https://github.com/xbgmsharp/postgsail/tree/main/Why.md)
|
To understand the why and how, you might want to read [Why.md](https://github.com/xbgmsharp/postgsail/blob/main/Why.md)
|
||||||
|
|
||||||
## Cloud-hosted PostgSail
|
## Cloud-hosted PostgSail
|
||||||
|
|
||||||
@@ -102,7 +102,7 @@ Contributions are what make the open source community such an amazing place to b
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Distributed under the Apache License Version 2.0. See [LICENSE](https://github.com/xbgmsharp/postgsail/blob/main/LICENSE.md) for more information.
|
Distributed under the Apache License Version 2.0. See [LICENSE](https://github.com/xbgmsharp/postgsail/blob/main/LICENSE) for more information.
|
||||||
|
|
||||||
## Acknowledgements
|
## Acknowledgements
|
||||||
|
|
||||||
|
@@ -13,6 +13,7 @@ For more clarity and visibility the complete [Entity-Relationship Diagram (ERD)]
|
|||||||
|
|
||||||
A full-featured development environment.
|
A full-featured development environment.
|
||||||
|
|
||||||
|
### Development
|
||||||
#### With CodeSandbox
|
#### With CodeSandbox
|
||||||
|
|
||||||
- Develop on [](https://codesandbox.io/p/github/xbgmsharp/postgsail/main)
|
- Develop on [](https://codesandbox.io/p/github/xbgmsharp/postgsail/main)
|
||||||
@@ -26,7 +27,9 @@ A full-featured development environment.
|
|||||||
#### With Docker Dev Environments
|
#### With Docker Dev Environments
|
||||||
- [Open in Docker dev-envs!](https://open.docker.com/dashboard/dev-envs?url=https://github.com/xbgmsharp/postgsail/)
|
- [Open in Docker dev-envs!](https://open.docker.com/dashboard/dev-envs?url=https://github.com/xbgmsharp/postgsail/)
|
||||||
|
|
||||||
### pre-deploy configuration
|
|
||||||
|
### On-premise (self-hosted)
|
||||||
|
#### pre-deploy configuration
|
||||||
|
|
||||||
To get these running, copy `.env.example` and rename to `.env` then set the value accordingly.
|
To get these running, copy `.env.example` and rename to `.env` then set the value accordingly.
|
||||||
|
|
||||||
@@ -34,12 +37,26 @@ To get these running, copy `.env.example` and rename to `.env` then set the valu
|
|||||||
# cp .env.example .env
|
# cp .env.example .env
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# nano .env
|
||||||
|
```
|
||||||
|
|
||||||
Notice, that `PGRST_JWT_SECRET` must be at least 32 characters long.
|
Notice, that `PGRST_JWT_SECRET` must be at least 32 characters long.
|
||||||
|
|
||||||
`$ cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 42 | head -n 1`
|
`$ cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 42 | head -n 1`
|
||||||
|
|
||||||
```bash
|
`PGSAIL_APP_URL` is the url in you connect to in your browser.
|
||||||
# nano .env
|
|
||||||
|
`PGSAIL_API_URL` is the URL where `PGSAIL_APP_URL` connect to.
|
||||||
|
|
||||||
|
`PGRST_DB_URI` is the URI where the `PGSAIL_API_URL` connect to.
|
||||||
|
|
||||||
|
To summarize:
|
||||||
|
```mermaid
|
||||||
|
graph LR
|
||||||
|
A[YOU] -- HTTP --> B{PGSAIL_APP_URL}
|
||||||
|
B -- HTTP --> C{PGSAIL_API_URL}
|
||||||
|
C -- SQL --> D{PGRST_DB_URI}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Deploy
|
### Deploy
|
||||||
@@ -94,6 +111,8 @@ UPDATE app_settings
|
|||||||
WHERE name = 'app.email_server';
|
WHERE name = 'app.email_server';
|
||||||
```
|
```
|
||||||
|
|
||||||
|
As it is all about SQL, [Read more](https://github.com/xbgmsharp/postgsail/docs/ERD/README) about the database and explore your data.
|
||||||
|
|
||||||
### Ingest data
|
### Ingest data
|
||||||
|
|
||||||
Next, to ingest data from signalk, you need to install [signalk-postgsail](https://github.com/xbgmsharp/signalk-postgsail) plugin on your signalk server instance.
|
Next, to ingest data from signalk, you need to install [signalk-postgsail](https://github.com/xbgmsharp/signalk-postgsail) plugin on your signalk server instance.
|
||||||
|
Reference in New Issue
Block a user