dawarich/README.md

37 lines
1.1 KiB
Markdown
Raw Normal View History

2024-03-15 17:28:54 -04:00
# Dawarich
2024-03-15 18:27:31 -04:00
This is a Rails app that receives location updates from Owntracks and stores them in a database. It also provides a web interface to view the location history.
2024-03-15 18:27:31 -04:00
## Features
2024-03-15 18:27:31 -04:00
### Google Maps Timeline import
2024-03-15 18:27:31 -04:00
You can import your Google Maps Timeline data into Wardu.
2024-03-15 18:27:31 -04:00
### Location history
2024-03-15 18:27:31 -04:00
You can view your location history on a map.
## How to start the app locally
0. Install and start Docker
1. `make build` to build docker image and install all the dependencies (up to 5-10 mins)
2. `make setup` to install gems, setup database and create test records
3. `make start` to start the app
Press `Ctrl+C` to stop the app.
Dockerized with https://betterprogramming.pub/rails-6-development-with-docker-55437314a1ad
2023-05-28 06:52:13 -04:00
## Deployment
2023-05-28 06:52:13 -04:00
`make build_and_push version=0.0.5` to build and push the docker image to the registry
2023-05-28 06:52:13 -04:00
Then go to Portainer and update the service to use the new image
2024-03-15 18:27:31 -04:00
## Environment variables
`MINIMUM_POINTS_IN_CITY` — minimum number of points in a city to consider it as a city visited, eg. `10`
`MAP_CENTER` — default map center, e.g. `55.7558,37.6176`
`TIME_ZONE` — time zone, e.g. `Europe/Berlin`