Skip to content

fjordllc/bootcamp

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
app
 
 
bin
 
 
 
 
db
 
 
doc
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

CircleCI Create a release pull-request

Bootcamp

プログラマー向けEラーニングシステム。

インストールと起動

$ bin/setup
$ foreman start -f Procfile.dev

practiceの所要時間の集計

学習時間記入した日報を投稿した上で、

$ rake bootcamp:statistics:save_learning_minute_statistics

テスト

ヘッドレスブラウザーでテスト

$ rails test:all

普通のブラウザーでテスト

$ HEADED=1 rails test:all

Lint

次のコマンドでlintを実行します。

$ ./bin/lint

実行されるlint

  • Ruby
    • rubocop
    • slim-lint
  • JavaScript
    • eslint
    • prettier
  • eslintの警告は以下のコマンドで修正されますが、修正されない場合は手動で修正してください。
$ eslint 'app/javascript/**/*.{js,vue,jsx}' --fix
  • prettierの警告が出ている場合には、以下のコマンドで修正できます。
$ prettier app/javascript/**/*.{js,vue,jsx} --write

Profiler

rack-mini-profilerによりプロファイリングはデフォルトではOFFになっています。ONにする場合は下記のようにサーバーと立ち上げます。

$ PROFILE=1 rails server

その他