Skip to content

JoaoPedroLucatto/rails-project-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Rails Project Generator

This project is a helper tool to easily create new Rails 8 applications without installing Ruby, Rails, or dependencies on your local machine.

✅ Prerequisites

🛠️ How to Use the Generator

  1. Create a folder with your desired project name, for example:
mkdir new-project && cd new-project
  1. Generate project

Use the variable PROJECT_PATH to map a volume with the container.

Exemple:

make build generate ARGS="--database=postgresql --skip-bundle --skip-javascript" PROJECT_PATH="./new-project"

Docker Run Without make

If you prefer to run manually with Docker.

-v $(pwd)/my-project:/app: mounts your local my-project directory into the container at /app.

-w /app: sets the working directory inside the container, so the rails new command will be executed inside the /app folder.

docker run --rm \
  -v $(pwd)/my-project:/app \
  -w /app \
  joaopedrolucatto/rails-project-generator:latest \
  rails new . --database=postgresql --skip-bundle --skip-javascript

About

Create Ruby on Rails 8 applications in seconds, without having to install anything locally!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published