Skip to content

🍷 Fast, super productive and aphrodisiac web-framework written in golang

License

Notifications You must be signed in to change notification settings

dayvsonlima/catuaba

Repository files navigation

GitHub Actions

Catuaba Framework

Fast, super productive and aphrodisiac web-framework written in golang

Catuaba Framework Golang new command example

Setup

Mac OS

Intel

curl -L https://github.com/dayvsonlima/catuaba/releases/latest/download/catuaba-darwin-amd64.tar.gz | tar xz && sudo mv catuaba /usr/local/bin/

Apple Silicon

curl -L https://github.com/dayvsonlima/catuaba/releases/latest/download/catuaba-darwin-arm64.tar.gz | tar xz && sudo mv catuaba /usr/local/bin/

Linux

curl -L https://github.com/dayvsonlima/catuaba/releases/latest/download/catuaba-linux-amd64.tar.gz | tar xz && sudo mv catuaba /usr/local/bin/

On Windows

Download the exe and add the path to your environment variables

https://github.com/dayvsonlima/catuaba/releases/latest/download/catuaba-windows-amd64.zip

Command List

Catuaba Framework Golang scaffold command example

Command Description Usage
--help provide cli instructions catuaba --help
new Create a New project catuaba new <project-name>
server Starts the catuaba web server Run catuaba server in the project root
generator Call some catuaba generator catuaba generator <generator-name> ...<generator-params>

Generators List

Command Description Usage
scaffold scaffold is a full set of model, controller and router for one RESTFUL resource catuaba g scaffold <model-name> ...<attribute:type>
model generates a new model file in app/models directory catuaba g model <model-name> ...<attribute:type>
controller generates a new controller package in app/controller catuaba g controller <controller-name> ...<method-name (index, new, create, update, delete, all)>. if you don't specify the method name, catuaba will create them all by default