You can easily create Rails templates using docker-compose. It uses PostgreSQL for the database and webpacker on the front end, so modern development using ES 6 is possible.
詳細な手順はQiitaにも載せてあります。
Please install Docker on your PC first. Refer to here for the installation procedure.
If you are a Linux user you need to install docker-compose with this operations.
Then clone the repository and move to project folder.
Plese set your project name like sample_app
.
git clone https://github.com/belion-freee/quickstart.git <Project name>
cd <Project name>
It may be easier to fork. In that case, please change the repository name from Settings -> Rename after fork.
Only you need to execute setup shell.
./qs setup
You can use the options available with rails new
commands.
./qs setup -T --webpack=react
Finally, please access http://localhost:3000
as Rails is running.
Enjoy your Rails!
If you want to use MySQL, please install it referring to the following branch.
If you want to use Rails 6.0 or later, please install it referring to the following branch.
It has been reported that scripts do not work properly on Windows. If it does not work properly, please install it referring to the following branch.
You can use also those services!
Execute ./qs up spring
command.
And you can execute some command like ./qs spring rails c
, ./qs spring rails db:migrate
.
If you use solargraph container at first time, Please Add gem 'solargraph', group: :development
to Gemfile, And execute ./qs bundle install
command.
Execute ./qs up solargraph
command.
Now, You can use solargraph server.
Execute ./qs up redis
command.
Execute ./qs up chrome
command.
you can use byebug.