Skip to content

mddelk/notes

Repository files navigation

notes

A simple note-taking web app.

Note

This is a hobby project, don't expect stability, documentation, security fixes, etc.

local dev

Just normal Rails setup:

  • install ruby and sqlite3, and for tests, yarn and chromium
  • git clone https://github.com/jethrodaniel/notes && cd notes
  • bin/setup
  • bin/dev
  • visit http://localhost:3000
  • sign in with email: admin@app.localhost, password: password
  • run tests with bin/ci

deploy

secrets manager setup

We're using bitwarden secrets manager.

  • create 2 projects, notes-production and notes-staging, and add RAILS_MASTER_KEY to each
  • install bws
  • cp .env.example .env, add your bitwarden configuration
  • eval $(cat .env)

sanity check with bin/bws-get-project-id notes-production.

credentials

bin/rails credentials:edit -e production
bin/rails credentials:edit -e staging

Add the following:

deploy:
  local_backups_directory: /some/local/path
  remote_backups_directory: /some/remote/path

kamal:
  proxy_host: your.deploy.url
  server: 192.123.456.789
  ssh_user: username
  ssh_port: 22

kamal

Deploy with kamal:

bin/kamal deploy -d staging
bin/kamal deploy -d production

backups

Download a local backup:

bin/rails r script/backup.rb -e staging
bin/rails r script/backup.rb -e production

Restore from a previous backup:

bin/rails r script/restore.rb restore.tgz -e staging
bin/rails r script/restore.rb restore.tgz -e production

license

SPDX-FileCopyrightText: Copyright (c) 2025 Mark Delk
SPDX-License-Identifier: AGPL-3.0-or-later

Also:

contributing

You don't - contributions aren't accepted.

About

A simple note-taking web app (rails 8, hotwire)

Topics

Resources

Stars

Watchers

Forks

Contributors