Skip to content

About

A standardized way to initialize a Modulotech rails project from scratch.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A standardized way to initialize a Modulotech rails project from scratch.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages