Home > Backend Development > C++ > body text

libaloo (Aloo)

Susan Sarandon
Release: 2024-09-28 14:07:02
Original
307 people have browsed it

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]: 
Copy after login

--path flag:

$ aloo create-app –-path .                           
Enter app name[Example App]:                         
Enter description[An default template for aloo App]: 
Copy after login

No flags:

$ aloo create-app                                    
Enter project name[aloo-project]:                    
Enter app name[Example App]:                         
Enter description[An default template for aloo App]: 
Copy after login

model

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

$ aloo model human name:string age:int hobby:object 
Copy after login

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           
Copy after login

restart

$ aloo connect-db restart    
Copy after login

add

$ aloo connect-db add human 
Copy after login

build

Builds aloo app and test

$ aloo build                       
Copy after login

run

Options:

app

Runs aloo app

$ aloo run app             
Copy after login

test

Runs aloo tests

$ aloo run test
Copy after login

The above is the detailed content of libaloo (Aloo). For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!