Mantra Demo Projects

Mantra Demo Projects


Learn Mantra easily with these demos. New demo projects coming.

This is a simple application to show the basics of CRUD operations with Mantra.

Defines a simple data model and implements a command to choose between options to add, show, remove and update simple items.

Clone repo & install with:

$ git clone https://github.com/mantrajsframework/crud-mantrademo
$ cd crud-mantrademo
~/crud-mantrademo$ mantrad install

Then, start the project with:

~/crud-mantrademo$ mantrad startapp

This Mantra application defines a simple command to get Bitcoin prices in real time.

Clone repo & install with:

$ git clone https://github.com/mantrajsframework/command-mantrademo
$ cd command-mantrademo
~/command-mantrademo$ mantrad install

Then, start the project with:

~/command-mantrademo$ mantrad startapp

This simple app, includes a component with a cron job define to be called once a second.

Clone repo & install with:

$ git clone https://github.com/mantrajsframework/tick-mantrademo
$ cd tick-mantrademo
~/tick-mantrademo$ mantrad install

Then, start the project with:

~/tick-mantrademo$ mantrad startapp

Simple Mantra app to define a REST Api endpoint to generate random values.

Clone repo & install with:

$ git clone https://github.com/mantrajsframework/randomrestapi-mantrademo
$ cd randomrestapi-mantrademo
~/randomrestapi-mantrademo$ mantrad install

Then, start the project with:

~/randomrestapi-mantrademo$ mantrad startapp

Simple Mantra web application to generate QR codes.

Clone repo & install with:

$ git clone https://github.com/mantrajsframework/qr-mantrademo
$ cd qr-mantrademo
~/qr-mantrademo$ mantrad install

Then, start the project with:

~/qr-mantrademo$ mantrad startapp