DEV Community

Cover image for libaloo (Aloo)
Jaipal001
Jaipal001

Posted on

libaloo (Aloo)

libaloo is a C library which uses GTK4 behind the scenes to create an GTK application
It’s mainly written in C.
It also has a CLI and CLI with TUI written in C++ with FtxUI but to set it up, Python is used.

To install it, go to Release and install based on your system soon will be available, currently, only .deb available but I have made bash scripts to do it and then share it to me too to add that to release

Use aloo-cli or aloo can be used to create a template project and models, connect to db like sqlite and mongo and test

Aloo CLI

It consists of 2 commands
• aloo: It also consists of TUI features
• aloo-cli: It only has CLI features

create-app

Creates template project with some configs

--name flag:

$ aloo create-app -–name project
Enter app name[Example App]:                         
Enter description[An default template for aloo App]: 
Enter fullscreen mode Exit fullscreen mode

--path flag:

$ aloo create-app –-path .                           
Enter app name[Example App]:                         
Enter description[An default template for aloo App]: 
Enter fullscreen mode Exit fullscreen mode

No flags:

$ aloo create-app                                    
Enter project name[aloo-project]:                    
Enter app name[Example App]:                         
Enter description[An default template for aloo App]: 
Enter fullscreen mode Exit fullscreen mode

model

creates new a new object model for aloo project
and adds it to configuration

$ aloo model human name:string age:int hobby:object 
Enter fullscreen mode Exit fullscreen mode

connect-db

  • Create connections with Dbs like SQLite, mongo
  • Connect utilites related to model
  • Restart database (Delete all old data)

Options:

new

$ aloo connect-db new sqlite 
Enter db file[db.sqlite]:    
Enter model: human           
Enter fullscreen mode Exit fullscreen mode

restart

$ aloo connect-db restart    
Enter fullscreen mode Exit fullscreen mode

add <model>

$ aloo connect-db add human 
Enter fullscreen mode Exit fullscreen mode

build

Builds aloo app and test

$ aloo build                       
Enter fullscreen mode Exit fullscreen mode

run

Options:

app

Runs aloo app

$ aloo run app             
Enter fullscreen mode Exit fullscreen mode

test

Runs aloo tests

$ aloo run test
Enter fullscreen mode Exit fullscreen mode

Top comments (0)