A base Rails application to kickstart new projects.
- Ruby tests using RSpec and Selenium with coverage.
- JavaScript tests using Mocha with coverage from c8.
- Litestream database replication for backups.
- GitHub Actions for testing, linting, security, and continuous deployment.
- Kamal for deployments in staging and production, with customizable health checks.
- CSS using Tailwind CSS configuration.
Install the dependencies and setup the database.
bin/setup
To run the application processes.
bin/dev
If you're making changes, be sure to write and run the tests.
bundle exec rake ruby:test
bundle exec rake javascript:test
Before pushing changes, check the code.
bundle exec rake css:lint
bundle exec rake erb:lint
bundle exec rake ruby:lint
bundle exec rake javascript:lint
Or you can run the tests with coverage and lint with a single command.
bundle exec rake check
Build the image with Docker.
docker build -t untitled .
Run the server using the image.
docker run --rm -p 3000:80 -e SECRET_KEY_BASE=$(bin/rails secret) --name untitled untitled
Untitled uses the MIT license. See LICENSE for more details.