Giter VIP home page Giter VIP logo

rails_vue_practice's Introduction

Ruby on Rails x Vue.js practice

このプロジェクトは Rails x Vue のWebアプリケーションテンプレートです。
始める場合は、Dockerが使用できる環境を準備してから 環境構築 のステップを踏んでください。

環境構築

まずはこのプロジェクトをForkします。
自分のアカウントにリポジトリがコピーされたら、それをCloneします。

# リポジトリをClone
$ git clone [email protected]:{Your Account Name}/rails_vue_practice.git
$ cd rails_vue_practice

# Dockerのbuildを実行します
$ sudo docker compose build

利用方法

プロジェクトの起動

# Dockerコンテナを立ち上げます
# vueの初回起動はかなり時間がかかります
$ sudo docker compose up

アプリケーションへのアクセス

localhost:8080 でWebページにアクセスできます。

コンテナ内でのコマンド実行

rails_exec コマンドファイルと vue_exec コマンドファイルを利用して、コンテナ内部でコマンドを実行できます。

コマンド早見表

※ 全てプロジェクトルートディレクトリで実行しています。

# --- Rails ---

# bundle install
$ sudo ./rails_exec bundle install
# rails console
$ sudo ./rails_exec rails console
# migrate
$ sudo ./rails_exec rails db:migrate
# モデル作成
$ sudo ./rails_exec rails g model {モデル名}


# --- Vue ---

# npm install
$ sudo ./vue_exec npm install xxx
$ sudo ./vue_exec npm install

rails_vue_practice's People

Contributors

arashi-k 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.