This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ruby:2.4.1-slim | |
| RUN apt-get update && apt-get install -qq -y --no-install-recommends \ | |
| build-essential nodejs libpq-dev imagemagick | |
| ENV INSTALL_PATH /my_app | |
| RUN mkdir -p $INSTALL_PATH | |
| WORKDIR $INSTALL_PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -it --rm --user "$(id -u):$(id -g)" -v "$PWD":/usr/src/app -w /usr/src/app rails rails new --skip-bundle my_app --database=postgresql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rails_helper' | |
| RSpec.describe TodosController, :type => :controller do | |
| describe "GET #index" do | |
| #describe "POST #create" do | |
| #describe "GET #show" do | |
| #describe "PATCH #update" do (or PUT #update) | |
| #describe "DELETE #destroy" do | |
| #describe "GET #new" do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .user-image { | |
| width: 32px; | |
| height: 32px; | |
| border-radius: 50%; | |
| background-color: #3c8dbc; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| font-size: 16px; | |
| color: white; |
NewerOlder