This script automates the setup of a new Rails API project using Docker. It configures Ruby, Rails, and all necessary Docker settings to get a new Rails application up and running quickly.
- Validates user input for Ruby and Rails versions.
- Generates a new Rails application with Docker configuration.
- Automatically creates and configures PostgreSQL as the database.
To use this script, follow these steps:
- Ensure Docker and Docker Compose are installed on your system.
- Download or clone this repository to your local machine.
- Run the script:
bash setup.sh