Self-hostable alternative to Google Location History (Google Maps Timeline)
Find a file
2024-03-09 23:52:46 +01:00
.github Add a GitHub Actions workflow for Ruby on Rails 2024-03-09 23:52:46 +01:00
app Update gems and daisyui 2024-03-09 23:44:27 +01:00
bin Add import-maps and turbo with some devise views 2023-10-21 12:52:50 +02:00
config Add a GitHub Actions workflow for Ruby on Rails 2024-03-09 23:52:46 +01:00
db Update to Rails 7.1.1 2023-10-21 12:43:31 +02:00
lib Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
log Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
public Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
spec Update gems and fix tests 2024-01-02 13:24:23 +01:00
storage Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
test Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
tmp Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
vendor Add import-maps and turbo with some devise views 2023-10-21 12:52:50 +02:00
.env.development Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
.env.test Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
.gitattributes Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
.gitignore Add basic landing page 2023-10-21 13:00:05 +02:00
.rspec Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
.rubocop.yml Add rubocop-rails 2022-10-30 18:34:17 +01:00
.ruby-version Update to Rails 7.1.1 2023-10-21 12:43:31 +02:00
app.json Add strong_migrations gem 2023-02-03 15:42:56 +01:00
config.ru Add some frozen_string_literal 2022-10-30 18:42:06 +01:00
dev-docker-entrypoint.sh Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
docker-compose.yml Fix starting issues 2022-04-07 20:45:38 +04:00
Dockerfile.dev Update to Rails 7.1.1 2023-10-21 12:43:31 +02:00
Gemfile Update gems and fix tests 2024-01-02 13:24:23 +01:00
Gemfile.lock Update gems and daisyui 2024-03-09 23:44:27 +01:00
Makefile Add strong_migrations gem 2023-02-03 15:42:56 +01:00
package-lock.json Update gems and daisyui 2024-03-09 23:44:27 +01:00
package.json Update gems and daisyui 2024-03-09 23:44:27 +01:00
Procfile Add strong_migrations gem 2023-02-03 15:42:56 +01:00
Procfile.dev Fix starting issues 2022-04-07 20:45:38 +04:00
Rakefile Add some frozen_string_literal 2022-10-30 18:42:06 +01:00
README.md Add details on how to deploy the app 2023-05-28 12:52:13 +02:00
rename_app.rb Add some frozen_string_literal 2022-10-30 18:42:06 +01:00
test-docker-entrypoint.sh Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
yarn.lock Update gems and daisyui 2024-03-09 23:44:27 +01:00

SoloCustomerTemplate

This is a Rails 7.0.2.3 app template with test suite, user auth and development docker env.

How to rename the app

Run

ruby rename_app.rb old_app_name new_app_name

Notice, the name must be in snake_case. Default app name is solo_customer_template.

How to start the app locally

  1. Install and start Docker
  2. make build to build docker image and install all the dependencies (up to 5-10 mins)
  3. make setup to install gems, setup database and create test records
  4. make start to start the app

Press Ctrl+C to stop the app.

Dockerized with https://betterprogramming.pub/rails-6-development-with-docker-55437314a1ad

Deployment (1st time)

  1. Set variables in Homelab repo
  2. make dokku_new_app
  3. make dokku_setup_backups
  4. make dokku_add_domain
  5. Create certificates files in Homelab repo
  6. make dokku_add_ssl
  7. Set SSL/TLS mode to Full in Cloudflare
  8. git remote add dokku dokku@DOKKU_SERVER_UP:APP_NAME
  9. git push dokku master
  10. Add app.json to the repo:
  {
    "scripts": {
      "predeploy": "dokku ps:stop solo_customer_template"
    },
    "formation": {
      "web": {
        "quantity": 1
      },
      "worker": {
        "quantity": 1
      }
    }
  }