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]: 
⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini ⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini

--path flag:

$ aloo create-app –-path .                           
Enter app name[Example App]:                         
Enter description[An default template for aloo App]: 
⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini ⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini

No flags:

$ aloo create-app                                    
Enter project name[aloo-project]:                    
Enter app name[Example App]:                         
Enter description[An default template for aloo App]: 
⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini ⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini

model

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

$ aloo model human name:string age:int hobby:object 
⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini ⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini

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           
⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini ⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini

restart

$ aloo connect-db restart    
⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini ⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini

add <model>

$ aloo connect-db add human 
⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini ⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini

build

Builds aloo app and test

$ aloo build                       
⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini ⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini

run

Options:

app

Runs aloo app

$ aloo run app             
⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini ⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini

test

Runs aloo tests

$ aloo run test
⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini ⭐ Football Update: bhjaipal/libaloo aloo aba - Pertandingan Hari Ini

Top comments (0)