Skip to content

nullnull/nuxt_on_rails_on_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker + Rails + Nuxt.js

CircleCI Maintainability Test Coverage

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)

Setup for local development

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 # rails

To shutdown server and remove containers

$ docker-compose down

Testing on local environment

$ docker-compose rails bundle exec rspec spec

Feature Spec

You can use VNC server to monitor selenium while testing. Run open vnc://localhost:5900/ and type secret for password.

Deploy to Google Kubernetes Engine(GKE)

Before deployment, please setup your settings for GKE and CloudSQL.

sh kube/deploy.sh

About

A powerful template with the minimun you need to start to work with Rails 6.0 + Nuxt.js 2.9

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published