Skip to content

belion-freee/quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quickstart

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にも載せてあります。

Install Docker

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.

Clone this repository

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.

Execute Setup

Only you need to execute setup shell.

./qs setup

Options

You can use the options available with rails new commands.

./qs setup -T --webpack=react

Hello World!!

Finally, please access http://localhost:3000 as Rails is running. Enjoy your Rails!

Do you wana use MySQL?

If you want to use MySQL, please install it referring to the following branch.

MySQL

Do you wana use Rails6?

If you want to use Rails 6.0 or later, please install it referring to the following branch.

Rails 6.0

Do you use Windows?

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.

With PostgreSQL With MySQL

Other services

You can use also those services!

Spring service

Execute ./qs up spring command. And you can execute some command like ./qs spring rails c, ./qs spring rails db:migrate.

Solargraph service

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.

Redis service

Execute ./qs up redis command.

Chrome service

Execute ./qs up chrome command.

Development

debug

you can use byebug.

https://qiita.com/TYuko/items/d46f5dc91dd488574273

About

This is template to quick start Ruby on Rails with docker-compose.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published