Quickstart
Install Manul
Section titled “Install Manul”Run the following command to download and install Manul:
curl -sSf https://manul.build/install.sh | shirm https://manul.build/install.ps1 | iexThis installs Manul to ~/.manul and configures a background service for manul server.
Refresh Your Path
The system PATH is automatically configured, but you’ll need to refresh your terminal session to use the manul command immediately:
- macOS/Linux: Run
source ~/.manul/bin/env. - Windows: Restart the terminal.
Verify Installation
Check the version to confirm manul was installed correctly:
manul --versionCreate First Application
Section titled “Create First Application”Create an application named “quickstart”:
manul new quickstartThe command creates an appliction on your manul server and generates a directory with the following structure:
Directoryquickstart/
- src/ example.mnl
- .manul/ default/ app
src/example.mnlis a manul source file containing aBookclass..manul/default/appstores the ID of the application.
Enter the directory and deploy the project:
cd quickstartmanul deployCreate an Object
Section titled “Create an Object”Once deployed, manul automatically generates REST API for your application. Send the following HTTP request to create a new book:
POST http://localhost:8080/quickstart/books
{ "title": "The Hobbit", "author": "J.R.R. Tolkien"}The server should responds with the created book.