Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
72a3e88
intialize rails project
mat-diak Feb 11, 2022
8932010
generate Post model and set basic main page view
mat-diak Feb 11, 2022
ccf346e
update bundle
mat-diak Feb 11, 2022
c010e6f
create rubyonrails.yml
mat-diak Feb 12, 2022
8f3a7da
change rspec command
mat-diak Feb 12, 2022
04ce93a
add bundler-audit gem to Gemfile
mat-diak Feb 12, 2022
114047f
change bundler-audit and rubocop command i github ci, add rubocop to …
mat-diak Feb 12, 2022
f824f8d
change bundle-audit command i github workflow
mat-diak Feb 12, 2022
d5ba14a
change bundle-audit command in github workflow
mat-diak Feb 12, 2022
62876ac
change rubocop command in github workflow
mat-diak Feb 12, 2022
1decd20
Merge pull request #3 from mikitaro-27/mikitaro-27-patch-1
mat-diak Feb 12, 2022
d15c9d9
create scaffold for posts to have images
mat-diak Feb 12, 2022
130736e
user can add make a post
mat-diak Feb 12, 2022
a8a4841
create requests tests for /create, /index routes of Posts
mat-diak Feb 12, 2022
527eb04
change node version in rubyonrails github workflow
mat-diak Feb 12, 2022
19d25d7
change node version in rubyonrails github workflow v2
mat-diak Feb 12, 2022
3c00b0b
change node version in rubyonrails github workflow v3
mat-diak Feb 12, 2022
c9429ac
change node version in rubyonrails github workflow v4
mat-diak Feb 12, 2022
dbc2528
comment out application.html.erb
mat-diak Feb 12, 2022
15ac593
Merge pull request #4 from mikitaro-27/posts
mat-diak Feb 12, 2022
fbdda55
fix css
mat-diak Feb 12, 2022
f189736
formatting for bootstrap
mat-diak Feb 13, 2022
2933c8c
change github workflow file
mat-diak Feb 13, 2022
6c0ff13
change github workflow file v2
mat-diak Feb 13, 2022
4d16959
fix button names for tests
mat-diak Feb 13, 2022
1232d79
Merge pull request #5 from mikitaro-27/bt
mat-diak Feb 13, 2022
5e4df5a
update bootstrap dependencies
mat-diak Feb 13, 2022
43a2ab0
Merge pull request #6 from mikitaro-27/bt
mat-diak Feb 13, 2022
b5c7b54
create Procfile
mat-diak Feb 13, 2022
e25ce65
update
mat-diak Feb 13, 2022
017e6a1
add validations for new post
mat-diak Feb 13, 2022
89792e5
add cancel button for make post route
mat-diak Feb 13, 2022
b26fd4d
write a test for likes
mat-diak Feb 13, 2022
ec03b28
Update README.md
mat-diak Feb 13, 2022
099101e
update readme
mat-diak Feb 13, 2022
2de5dab
create migrations for likes- post has likes
mat-diak Feb 14, 2022
80e714a
user can add likes
mat-diak Feb 14, 2022
213b07b
run rubocop
mat-diak Feb 14, 2022
0aad733
Merge pull request #7 from mikitaro-27/likes
mat-diak Feb 14, 2022
6439ff4
add styling for like button and lieks
mat-diak Feb 14, 2022
4419f3c
Merge pull request #8 from mikitaro-27/likes
mat-diak Feb 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaults
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# See https://git-scm.com/docs/gitattributes for more about git attribute files.

# Mark the database schema as having been generated.
db/schema.rb linguist-generated

# Mark the yarn lockfile as having been generated.
yarn.lock linguist-generated

# Mark any vendored files as having been vendored.
vendor/* linguist-vendored
67 changes: 67 additions & 0 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# This workflow uses actions that are not certified by GitHub. They are
# provided by a third-party and are governed by separate terms of service,
# privacy policy, and support documentation.
#
# This workflow will install a prebuilt Ruby version, install dependencies, and
# run tests and linters.
name: "Ruby on Rails CI"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11-alpine
ports:
- "5432:5432"
env:
POSTGRES_DB: rails_test
POSTGRES_USER: rails
POSTGRES_PASSWORD: password
env:
RAILS_ENV: test
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.x'
# Add or replace dependency steps here
- name: Install Ruby and gems
uses: ruby/setup-ruby@8f312efe1262fb463d906e9bf040319394c18d3e # v1.92
with:
bundler-cache: true
# Add or replace database setup steps here
- name: Set up database schema
run: bin/rails db:schema:load
- name: Install webpacker
run: bundler exec rails webpacker:install
- name: webpacker compile
run: bundler exec rails webpacker:compile
# Add or replace test runners here
- name: Run tests
run: bundler exec rspec

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Ruby and gems
uses: ruby/setup-ruby@8f312efe1262fb463d906e9bf040319394c18d3e # v1.92
with:
bundler-cache: true
# Add or replace any other lints here
- name: Security audit dependencies
run: bundler exec bundle-audit --update
# - name: Security audit application code
# run: bin/brakeman -q -w2
- name: Lint Ruby files
run: bundler exec rubocop --parallel
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.keep

# Ignore uploaded files in development.
/storage/*
!/storage/.keep

/public/assets
.byebug_history

# Ignore master key for decrypting credentials and more.
/config/master.key

/public/packs
/public/packs-test
/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity

.env
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
Loading