Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 963 Bytes

File metadata and controls

51 lines (34 loc) · 963 Bytes

1. Environment

  • Node v26.1.0

2. Reference

3. Docker

3-1. Setup Docker

$ docker-compose build
$ docker-compose up -d

3-2. Rails

3-2-1. Setup Rails Application

$ docker-compose exec app bin/setup

3-3-2. Access localhost:4000

Ruby on Rails App Home

3-3-2. Import Seed Data

Login via 'GitHubでログイン', and a user data will be created in user table.
Then, run the following command to create sample data.

docker-compose exec app bin/rails db:seed
``

## 4. `config/credentials.yml.enc`

Define a GitHub `client_id` and `client_secret`.

```yaml
# aws:
#   access_key_id: 123
#   secret_access_key: 345
secret_key_base: xxxxxxxxxxxxxxxxxxxxxxxx
github:
  client_id: [your_client_id]
  client_secret: [your_client_secret]