Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/levg34/baby-monitor
Little app to follow up the baby bottles and diaper changes, as well as the weight and height and many other things
https://github.com/levg34/baby-monitor
baby baby-bottles node-js vuejs
Last synced: about 7 hours ago
JSON representation
Little app to follow up the baby bottles and diaper changes, as well as the weight and height and many other things
- Host: GitHub
- URL: https://github.com/levg34/baby-monitor
- Owner: levg34
- License: gpl-3.0
- Created: 2020-10-25T17:37:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-16T20:40:03.000Z (about 1 year ago)
- Last Synced: 2023-10-17T09:24:05.556Z (about 1 year ago)
- Topics: baby, baby-bottles, node-js, vuejs
- Language: HTML
- Homepage: https://guilhemdross.fr/baby-monitor/
- Size: 344 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# baby-monitor
Little app to follow up the baby bottles and nappies changes, as well as the weight and height## Install and run:
You need npm version 5.8.0 or more, and node v10.21.0 or more.
```bash
npm install
npm run
```Then go to `localhost:8080`
### Docker
To run in a docker container (you need a running installation of Docker), simply do:
```bash
docker-compose up --build
```If you do not have `docker-compose` (and do not plan on installing it), you can do:
```bash
docker build -t baby-monitor .
docker run -p 80:8080 -d baby-monitor
```Then go to `localhost`
### System.d
To run as a system.d service, change the `baby-monitor.service` file as follows:
- Change the working directory with yours:
```
WorkingDirectory=/your/working/directory/baby-monitor
```- Change the user with yours:
```
User=yourUser
```- Copy in the system.d directory:
```bash
sudo cp baby-monitor.service /etc/systemd/system
```- Start with the command:
```bash
sudo systemctl start baby-monitor.service
```- Check that it is running properly
```bash
sudo systemctl status baby-monitor.service
```If you get any errors, do not forget to run `npm install` in your working directory
Then go to `localhost:3000` in your browser.
## Translations
### Add a new language
If you want to add your language, create your language file as JSON in `i18n` folder with the name of the locale. The file encoding must be UTF-8.
For example, to add russian translations, create `i18n/ru.json`
Add at minima the english name of the language, you can also add the local name:
```json
{
"english_name": "russian",
"local_name": "Ру́сский"
}
```To add an image for the russian language, download the image at https://www.freeflagicons.com/country/russia/rectangular_icon_with_iso_code/download/ (the size must be [256px](https://www.freeflagicons.com/download/?series=rectangular_icon_with_iso_code&country=russia&size=256))
```json
{
...
"image": "russian.png"
}
```To add translations, follow the model of the other translation files. For exemple, to add a translation for the title in russian, find the path on the HTML file or on the `i18n/en.json` file, and add it to your file:
```json
{
...
"jumbo": {
"title": "Наблюдение за ребенком"
}
}
```Full example:
`i18n/ru.json` :
```json
{
"english_name": "russian",
"local_name": "Ру́сский",
"image": "russian.png",
"jumbo": {
"title": "Наблюдение за ребенком"
}
}
```### Add new translations
To add missing translations in existing languages, find the language file in the `i18n` folder.
Then add the missing translations by comparing with the `i18n/en.json` file.