Giter Site home page Giter Site logo

simple-twitter-practice's Introduction

Maintainability

README

Fork

請 Fork 到你的 GitHub 目錄下,再從自己的目錄 git clone

How to initialize

下載要用到的套件

$ bundle install

載入預設提供的資料表

$ rails db:migrate

更新 Fork 的程式碼

由於是先 fork 再 clone,一般的 pull origin 只會拉到自己的 github repo 如果 AC 專案有更新,想要同步到最新專案程式碼的話,你需要先把 AC 專案位置加入遠端清單,再執行 pull

git remote add upstream [email protected]:ALPHACamp/simple-twitter.git
git pull upstream master

自動化測試

和自動化測試有關的程式碼,都存放在 /spec 的專案目錄下,所有的 Model 和 Controller 文件都會有一個對應的 spec 檔案,使用 rails generate modelrails generate controller 指令時會自動覆寫到現有的 spec 檔案。

因此,請你 不要 使用 rails generate modelrails generate controller 指令。

相對的,在你下載的專案中,已經準備好對應的 Model 和 Controller 檔案。

如果想在本地執行自動化測試,可以輸入指令

$ rspec

simple-twitter-practice's People

Contributors

azraeil avatar ellenlee avatar swingcloud avatar

Watchers

 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.