GithubHelp home page GithubHelp logo

project_template_rails_npm's Introduction

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 [email protected]: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

project_template_rails_npm's People

Contributors

hiraokashi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.