Skip to content

Latest commit

 

History

History
72 lines (54 loc) · 2.72 KB

README.md

File metadata and controls

72 lines (54 loc) · 2.72 KB

insert-coin

This is a Ruby on Rails application template.

Insert Coin

Usage

Simple. Create a new app by running:

rails new -m https://raw.githubusercontent.com/sinaptia/insert-coin/main/template.rb -d postgresql -a propshaft --skip-hotwire --skip-jbuilder -T -j esbuild -c tailwind APP_NAME

You can also clone this repository and run locally. Useful if you're experimenting or want so change something.

If you're running docker

If you don't have ruby installed natively and rely only in docker for local development, you can also run use this template. There are a few more steps, though:

docker run -it -v $PWD:/app -w /app --rm ruby:3.2-alpine sh -c 'apk add --no-cache --update build-base git imagemagick linux-headers nodejs npm postgresql-dev tzdata yarn && gem install rails && rails new -m https://raw.githubusercontent.com/sinaptia/insert-coin/main/template.rb -d postgresql -a propshaft --skip-hotwire --skip-jbuilder -T -j esbuild -c tailwind APP_NAME'

What does it do?

It creates a new rails 7 app with these features:

After running the rails new command you should have a rails 7 app with all of the above already set up. You only need to run:

bundle exec rails db:create db:migrate

and you can start working on your brand new app!

If you're running docker

You need to run:

docker-compose build web
docker-compose run web bundle
docker-compose run web yarn install
docker-compose run web rails db:create db:migrate
docker-compose up