Skip to content

Commit

Permalink
Merge branch 'main' of github.com:raphox/next-rails
Browse files Browse the repository at this point in the history
  • Loading branch information
raphox committed Nov 24, 2023
2 parents 2e17022 + 7543337 commit 321a2d8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ The `next_rails_scaffold` gem is a powerful extension to the standard Ruby on Ra

The generated Next.js app follows best practices, including a structured page routing system, ensuring that each resource created by the scaffold has its corresponding page and components. This integration enables developers to seamlessly transition between Rails backend and Next.js frontend development, fostering a cohesive and efficient development environment.

Key Features:
Currently, https://www.hygen.io/ is used to create Next.js code, and the https://github.com/raphox/next-rails-scaffold repository contains template files.

<div align="center">
<a href="https://www.youtube.com/watch?v=eMM3AChZ5LY" target="_blank">
<img
src="https://img.youtube.com/vi/eMM3AChZ5LY/0.jpg"
alt="NextRails (next_rails_scaffold)"
style="width:60%">
</a>
</div>

## Key Features:

- **Automatic Frontend Setup:** The gem automates the creation of a frontend directory within the Rails project, ready for Next.js development.
- **Page Routing Integration:** All scaffolded resources come with their own pages and components, organized using Next.js' page routing system.
Expand Down Expand Up @@ -57,6 +68,8 @@ frontend/
services.js
```

Sample app https://github.com/raphox/next-rails-app.

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
Expand Down

0 comments on commit 321a2d8

Please sign in to comment.