Home >Backend Development >C++ >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
It consists of 2 commands
• aloo: It also consists of TUI features
• aloo-cli: It only has CLI features
Creates template project with some configs
$ aloo create-app -–name project Enter app name[Example App]: Enter description[An default template for aloo App]:
$ aloo create-app –-path . Enter app name[Example App]: Enter description[An default template for aloo App]:
$ aloo create-app Enter project name[aloo-project]: Enter app name[Example App]: Enter description[An default template for aloo App]:
creates new a new object model for aloo project
and adds it to configuration
$ aloo model human name:string age:int hobby:object
Options:
$ aloo connect-db new sqlite Enter db file[db.sqlite]: Enter model: human
$ aloo connect-db restart
$ aloo connect-db add human
Builds aloo app and test
$ aloo build
Options:
Runs aloo app
$ aloo run app
Runs aloo tests
$ aloo run test
The above is the detailed content of libaloo (Aloo). For more information, please follow other related articles on the PHP Chinese website!