Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nullnull/nuxt_on_rails_on_docker
A powerful template with the minimun you need to start to work with Rails 6.0 + Nuxt.js 2.9
https://github.com/nullnull/nuxt_on_rails_on_docker
docker gke kubernetes nuxtjs rails selenium
Last synced: 3 days ago
JSON representation
A powerful template with the minimun you need to start to work with Rails 6.0 + Nuxt.js 2.9
- Host: GitHub
- URL: https://github.com/nullnull/nuxt_on_rails_on_docker
- Owner: nullnull
- Created: 2018-10-06T07:14:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T11:19:50.000Z (about 2 years ago)
- Last Synced: 2025-01-28T23:01:37.277Z (8 days ago)
- Topics: docker, gke, kubernetes, nuxtjs, rails, selenium
- Language: Ruby
- Homepage:
- Size: 553 KB
- Stars: 14
- Watchers: 3
- Forks: 5
- Open Issues: 36
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker + Rails + Nuxt.js
[![CircleCI](https://circleci.com/gh/nullnull/nuxt_on_rails_on_docker.svg?style=svg)](https://circleci.com/gh/nullnull/nuxt_on_rails_on_docker)
[![Maintainability](https://api.codeclimate.com/v1/badges/2e1f1bb8632cdfa0923e/maintainability)](https://codeclimate.com/github/nullnull/nuxt_on_rails_on_docker/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/2e1f1bb8632cdfa0923e/test_coverage)](https://codeclimate.com/github/nullnull/nuxt_on_rails_on_docker/test_coverage)A powerful template with the minimun you need to start to work with Rails 6.0 + Nuxt.js 2.9 :tada:
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](https://store.docker.com/search?type=edition&offering=community) on your local environment before setup.```sh
$ git clone [email protected]: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
```sh
$ docker-compose down
```## Testing on local environment
```sh
$ docker-compose rails bundle exec rspec spec
```### Feature Spec
You can use [VNC server](https://qiita.com/yszk0123/items/840f16ed388fb52b0e21) 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.```bash
sh kube/deploy.sh
```