class FaxtuReadMe
AUTHOR = "Nyk Ma <moe@nayuki.info>"
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
-
Notifications
You must be signed in to change notification settings - Fork 0
ファッ?! Another RoR scaffold?!
License
nykma/faxtu
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
ファッ?! Another RoR scaffold?!
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published