Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/3timeslazy/nightscout-ferretdb
Combining Nightscout server and FerretDB
https://github.com/3timeslazy/nightscout-ferretdb
cgm-remote-monitor ferretdb nightscout
Last synced: 1 day ago
JSON representation
Combining Nightscout server and FerretDB
- Host: GitHub
- URL: https://github.com/3timeslazy/nightscout-ferretdb
- Owner: 3timeslazy
- Created: 2024-03-25T17:58:18.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-02T18:29:16.000Z (7 months ago)
- Last Synced: 2024-05-03T05:02:13.056Z (7 months ago)
- Topics: cgm-remote-monitor, ferretdb, nightscout
- Language: Dockerfile
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nightscout && FerretDB
Inspired by [Nightscout](https://github.com/nightscout/cgm-remote-monitor) and [FerretDB](https://github.com/FerretDB/FerretDB) I decided that it might be a good idea to combine those two and build an alternative solution for [this issue](https://github.com/nightscout/cgm-remote-monitor/issues/7649).
## How to run tests
```sh
# Download Nightscout source code
$ git clone https://github.com/nightscout/cgm-remote-monitor.git# Run tests
$ make mongodb # test against mongodb
$ make ferretdb-sqlite # test against sqlite
$ make ferretdb-postgres # test against postgres
```## Play with FerretDB
If you're interested in how FerretDB stores the data you can go into `./volumes/{sqlite,postgres}` directories created by make scripts and check the data.
For SQLite it's going to be something like
```sh
$ sqlite3 ./data/sqlite/state/nightscout.sqlite
```For Postgres you can use the `ferretdb-postgres.yml` file
```sh
$ docker compose -f ferretdb-postgres.yml up -d
$ psql postgres://username:[email protected]:5432/ferretdb
```