@latechforce/engine
v0.84.0
Published
Web application generator from a configuration file as a Fair Use NPM package.
Downloads
113
Readme
LTF Engine is a web app generator
Build an app with database, automations, and more... all in a JSON file. LTF Engine is a web app generator that allows you to create web apps with a simple and intuitive schema. It runs on Bun. It is designed to be used by non-technical users to create web apps.
1. Install Bun
macOS/Linux
curl -fsSL https://bun.sh/install | bashWindows
powershell -c "irm https://bun.sh/install.ps1 | iex"2. Create a new project from a template
bun create latechforce/engine-template my-app3. Configure the app schema
import App, { type AppSchema } from '@latechforce/engine'
const schema: AppSchema = {
name: 'My app',
automations: [
{
name: 'get-message',
trigger: {
service: 'http',
event: 'get',
path: '/message',
},
actions: [
{
service: 'code',
action: 'run-typescript',
name: 'reply-message',
code: String(function () {
return { message: 'Hello, world!' }
}),
},
],
},
],
}
await new App().start(schema)4. Run the app
bun dev5. Enjoy!
curl http://localhost:3000/api/automations/message
{"message":"Hello, world!"}License
Copyright (c) 2024-present Thomas JEANNEAU, La Tech Force ([email protected]). This source code is licensed under a Fair Use License found in the LICENSE.
