Skip to content

hiraokashi/project_template_rails_npm

Repository files navigation

README

docker上で動作するRails5 & Nodejs(7.2.0)環境です。Dockerをインストールしてあれば、rubyやnodeのインストールなしにプロジェクトを始めることができます。

Docker Version

dockerは以下のバージョンで動作することを確認しています

Docker version 1.13.0, build 49bf474
docker-compose version 1.10.0, build 4bd6f1a
docker-machine version 0.9.0, build 15fd4c7

Application Version

  • Ruby 2.3.1
  • Ruby On Rails 5.0.0
  • Nodejs v7.2.0
  • npm 3.10.9

Docker Installation

お持ちのPCに合ったものインストールしてください

設定手順

1.Folk this Project

  • フォークせずに自分のプロジェクトに取り込む場合は1’に進む
  • まずはこのプロジェクトをフォークしてください。

2.Clone As your project

  • フォークしたプロジェクトをあなたの環境にcloneしてください
  • 3にすすむ

1' .新しいぷろじぇくとを空で作成する

2' .本リポジトリを取り込む

git clone [あなたのプロジェクトURL]
cd [clone 先のディレクトリ]
git remote add project_template_rails_npm git@github.com:hiraokashi/project_template_rails_npm.git
git pull project_template_rails_npm master
git push origin master

3.Build Container

docker-compose build

4.Bundle install and npm install

 docker-compose run --rm web bundle install
 docker-compose run --rm web npm install

5.Database Initialization

 docker-compose run --rm web rails db:create
 docker-compose run --rm web rails db:migrate

6.Run Container

 docker-compose up

About

rails5.0.0 & ruby2.3.1 & nodejs 7.2.1環境

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published