Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kawakamimoeki/example-jekyll-on-rails
collaboration of static site on Jekyll and dynamic app on Rails
https://github.com/kawakamimoeki/example-jekyll-on-rails
example jekyll rails
Last synced: 3 months ago
JSON representation
collaboration of static site on Jekyll and dynamic app on Rails
- Host: GitHub
- URL: https://github.com/kawakamimoeki/example-jekyll-on-rails
- Owner: kawakamimoeki
- Created: 2022-04-20T06:37:22.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-20T14:10:57.000Z (almost 3 years ago)
- Last Synced: 2023-10-04T08:54:32.617Z (over 1 year ago)
- Topics: example, jekyll, rails
- Language: Ruby
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
We use [testdouble/static-rails: Build & serve static sites (e.g. Jekyll, Hugo) from your Rails app](https://github.com/testdouble/static-rails).
## Development
```
bundle
``````
cd static && bundle && cd ../
``````
foreman start -f Procfile.dev
``````
open http://localhost:3000/
```## 意図
以下の3つを両立させる。
1. **完全な静的ページ**は、Model や View を気にしなくても実装できるようにして、リリースコストを下げたい
2. **一部動的なパーツがあるページ**は、APIをめぐる複雑な設計の手続きを回避したい
3. **フォームのような複雑な機能**は、 API や Vue.js などを用いずに Rails のようなフルスタックなフレームワークで実現したい### 実例
1. Jekyll のみで実現したページ
```
open http://localhost:3000/about/
```3. Jekyll と Turbo Frames, Rails を組み合わせて実現したページ
```
open http://localhost:3000/
```3. Rails の (M)VC で実現したページ
```
open http://localhost:3000/jobs
```