Skip to content

naokikubo2/quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quickstart

You can easily create Rails 6.0 templates using docker-compose. It uses PostgreSQL for the database and webpacker on the front end, so modern development using ES 6 is possible.

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 -b rails6 https://github.com/naokikubo2/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

Default

This templates use webpacker, postgresql and don't use minitest.

Options

You can use the options available with rails new commands.

./qs setup -T --webpack=react

Other

Ignoring warning

You may get a lot of warnings about [~ because its extensions are not built. Try ~].You can ignore Those warnings.

But if this warnings annoys you, Please execute the command displayed in the warning or execute ./qs bundle exec gem pristine --all.

Hello World!!

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

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.

About

quickにDockerで環境構築するためのリポジトリです。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published