https://github.com/nykma/faxtu
ファッ?! Another RoR scaffold?!
https://github.com/nykma/faxtu
ruby rubyonrails scaffold
Last synced: 2 months ago
JSON representation
ファッ?! Another RoR scaffold?!
- Host: GitHub
- URL: https://github.com/nykma/faxtu
- Owner: nykma
- License: mit
- Created: 2016-12-22T08:26:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T05:28:12.000Z (about 8 years ago)
- Last Synced: 2025-06-22T17:12:27.254Z (about 1 year ago)
- Topics: ruby, rubyonrails, scaffold
- Language: Ruby
- Size: 53.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# ファッ?!

[](http://spacemacs.org)
[](https://travis-ci.org/nykma/faxtu)
- - - -
```ruby
class FaxtuReadMe
AUTHOR = "Nyk Ma "
DOCKER_COMPOSE_AVAILABLE = (`which docker-compose` != '') &&
(`docker-compose -v` > 'docker-compose version 1.6.0')
def self.description
"My RoR scaffold with only JSON API stuff.\n使って、どうぞ。"
end
def self.based_on
based_on_list = {
ruby: File.read(Rails.root.join('.ruby-version'))
}
unless DOCKER_COMPOSE_AVAILABLE
based_on_list.merge!(
postgres: '>= 9.6',
redis: '>= 3.2'
)
end
based_on_list
end
def self.highlight
[
'Multi-login',
'Authorization',
'Version-friendly API',
'Sentry intergrated',
'API-blueprint based document',
'Reasonable Rubocop config'
].join("\n")
end
def self.preparation
`git clone https://github.com/nykma/faxtu.git && cd faxtu`
`cp config/application.sample.yml config/application.yml`
`ag --nocolor -l NEED_MODIFY | xargs emacsclient -t`
`bundle i`
`docker-compose up -d` if DOCKER_COMPOSE_AVAILABLE
`bin/rails db:create db:schema:load`
`bin/rails spec`
true
end
def self.main_components
{
main: %w(
rack-cors
figaro
devise
grape
grape-entity
),
development: %w(
rubocop
),
test: %w(
rspec-rails
factory_girl
faker
)
}
end
def self.license
File.read(Rails.root.join('MIT-LICENSE').to_s)
end
end
```