k2works / etude-op10-no4

React.jsとSinatraを使ったアプリケーションの開発

Home Page:https://op10-no4.herokuapp.com/index

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Étude Op. 10, No. 4 Torrent

Deploy

目的

Ract.jsとSinatraを使ったアプリケーションの開発

前提

ソフトウェア バージョン 備考
ruby 2.4.0
node 7.3.0
npm 3.10.10
yarn 0.18.1
vagrant 1.8.7
docker 1.12.5
docker-compose 1.8.0

構成

アプリケーション環境構築

React部分はÉtude Op. 10, No. 3 Tristesseをベース

Vagarntのセットアップ

vagrant up
vagrant ssh

Dockerのセットアップ

cd /vagrant/
docker-compose build

アプリケーション開発

Gemfileの追加

cd /vagrant/
bundle install

Sinatraアプリケーションのセットアップ

npm run ruby

テスト環境のセットアップ

bundle exec rspec

Nodeアプリケーションの修正

npm start

アプリケーション配置

heroku create op10-no4
git push heroku master

参照

About

React.jsとSinatraを使ったアプリケーションの開発

https://op10-no4.herokuapp.com/index


Languages

Language:JavaScript 50.3%Language:Ruby 43.3%Language:HTML 4.7%Language:CSS 1.8%