Next.js on Rails is an opinionated template for quickly setting up a project with Next.js as the frontend and Ruby on Rails as the backend API.
It follows the best practices of Next.js and Ruby on Rails. It is actively maintained and is a great starting point for new projects.
We have added Docker support to this template. You can find the Dockerfile in the docker
directory.
For a quick start, you can run the following command:
docker-compse up
components/shared
modal/dialog
# run in the root directory
$ bundle install
# create database, migrate & seed
$ rails db:prepare
# install packages and come back to root directory
$ cd frontend && npm install && cd ..
# run the application using Foreman
# services are defined in the Procfile
$ foreman start
$ docker-compose up
Contributions are appreciated! It can be as simple as fixing a typo. If you're facing any difficulty, create issues in the github repo and I will be happy to help.