Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
# 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 Byebug command history file.
.byebug_history
.idea/
File renamed without changes.
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-rails-json-api
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-2.3.1
1 change: 1 addition & 0 deletions server/Gemfile → Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ gem 'jsonapi-resources'
gem 'factory_girl'
gem 'faker'
gem 'devise_token_auth'
gem 'foreman', '~> 0.82.0'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
Expand Down
3 changes: 3 additions & 0 deletions server/Gemfile.lock → Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ GEM
faker (1.7.3)
i18n (~> 0.5)
ffi (1.9.18)
foreman (0.82.0)
thor (~> 0.19.1)
globalid (0.3.7)
activesupport (>= 4.1.0)
i18n (0.8.1)
Expand Down Expand Up @@ -165,6 +167,7 @@ DEPENDENCIES
devise_token_auth
factory_girl
faker
foreman (~> 0.82.0)
jsonapi-resources
listen (~> 3.0.5)
pg (~> 0.18)
Expand Down
2 changes: 2 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
web: cd client && npm start
api: bundle exec rails s -p 3000
7 changes: 5 additions & 2 deletions server/README.md → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
rails g model category name:string
rails g model post title:string body:text category:references
rails g model comment body:text post:references

### Resources

rails generate jsonapi:resource category
rails generate jsonapi:resource post
rails generate jsonapi:resource model
rails generate jsonapi:resource model

### Controllers

Expand All @@ -29,3 +29,6 @@
jsonapi_resources :categories
jsonapi_resources :posts
jsonapi_resources :comments

### Start app
foreman start
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 0 additions & 18 deletions server/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion server/.ruby-gemset

This file was deleted.

1 change: 0 additions & 1 deletion server/.ruby-version

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added tmp/restart.txt
Empty file.