Quick Start
Installation
Trillo requires Node.js v.16 or higher. If you don't have it on you machine, download it from the Node.js site and install it before proceeding.
Once installed, we can use the trillo serve
command to start a development server.
Hello World
We can add a simple page...
...and open http://localhost:3000 to see the seconds counter live.
Use in a project
Let's create a demo project:
We need to add an entry point with our configuration:
In TypeScript (or ES6 code) we can use imports instead:
We can now create a page in docroot/
like shown above and run the project:
When using Trillo in a project we can customize it and add our own services and middleware to the server. All options are documented in the Server Reference.
Last updated