A powerful template with the minimun you need to start to work with Rails 6.0 + Nuxt.js 2.9 🎉 Please clone this repository and use as starter template if you want to save your time.
This repository contains following settings.
- Nuxt.js 2.9 (with SSR)
- Ruby on Rails 6.0 (as API Server)
- Docker
- settings for Google Kubernetes Engine
- CircleCI, Code Climate
- RSpec + Capybara + Selenium + Headless Google Chrome (for E2E testing)
Please install Docker on your local environment before setup.
$ git clone git@github.com:nullnull/nuxt_on_rails_on_docker.git
$ cd nuxt_on_rails_on_docker
$ docker-compose build
$ docker-compose run --rm rails bin/setup
$ docker-compose run --rm nuxt yarn install
$ docker-compose up -d
$ open http://localhost:3000 # nuxt
$ open http://localhost:5000/tasks # railsTo shutdown server and remove containers
$ docker-compose down$ docker-compose rails bundle exec rspec specYou can use VNC server to monitor selenium while testing. Run open vnc://localhost:5900/ and type secret for password.
Before deployment, please setup your settings for GKE and CloudSQL.
sh kube/deploy.sh