https://github.com/yuler/motto
https://github.com/yuler/motto
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuler/motto
- Owner: yuler
- Created: 2024-06-05T06:25:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T04:38:38.000Z (almost 2 years ago)
- Last Synced: 2025-04-06T12:13:19.234Z (about 1 year ago)
- Language: Ruby
- Size: 122 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Motto
A site to generate random motto.
## Introduction
Motto is a web application designed to encourage English language learning. It generates random mottos that motivate and inspire learners on their language journey.
## Features
- Randomly generated motto every day.
- Share the motto on social media.
## Development
It need run redis for `hotwire-livereload`
```bash
# redis: docker run --rm -it --name redis -p 6379:6379 redis
./bin/dev
```
## Run it locally
```bash
docker build -t motto .
docker run -d -p 3000:3000 -p 443:443 -v ~/motto/storage:/rails/storage --name motto -e RAILS_MASTER_KEY=$(cat config/master.key) motto
ngrok http 3000
# Open a bash shell inside the container
docker exec -it motto bash
```
## Kamal
```bash
kamal init
kamal env push
kamal setup
kamal deploy
kamal app exec -i 'bin/rails console'
```