Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.2 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.2 KB

Moduloproject

Moduloproject is an open-source project.

There are two components:

  • a shell script
    • It spawn a Docker container running the last ruby image.
    • In this container, the last version of Rails is installed.
    • A new Rails project is generated running with a PostgreSQL database and using the Rails template.
  • a Rails template
    • It adds and configures the gem Modulorails.
    • It setup the git repository.

Installation and update

cd /usr/local/bin
sudo curl -o moduloproject https://raw.githubusercontent.com/moduloTech/moduloproject/master/moduloproject
sudo chmod +x moduloproject

Usage

mkdir superproject
cd superproject
moduloproject # Or `moduloproject -m importmap -i mri -v latest`; Use `moduloproject -h` to see all options
docker compose up -d --build

Container engine

The script uses Docker when its daemon answers, and falls back to Podman (rootless included) otherwise. Set CONTAINER_ENGINE=docker or CONTAINER_ENGINE=podman to force one.

The temporary PostgreSQL container is published on 127.0.0.1:55432. Set POSTGRES_PORT if that port is taken.