safidea / engine

Generate your web application from a simple configuration. We are building a powerful engine allowing the complete development of a web application from a JSON configuration file.

Home Page:https://safidea.com/engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Safidea Engine - Web App Generator

Safidea Engine is a API to generate web app, fast and easy. With a configuration file, you can create a full stack application.

Getting Started

Pre-requisites

You should have Node.js 20.11.1 or higher installed on your machine.

Installation

In a node project, install the engine with npm:

npm install @safidea_/engine

Usage

Then, create a startup file, for example index.js:

import App from '@safidea_/engine'

const app = new App()
const url = await app.start({
  name: 'Hello world website',
  features: [
    {
      name: 'website',
      pages: [
        {
          name: 'home',
          path: '/',
          body: [
            {
              component: 'Title',
              text: 'Hello world!',
            },
          ],
        },
      ],
    },
  ],
})

console.log(`Server started at ${url}`)

Finally, run the startup file with node:

node index.js

Configuration

A configuration is a JSON representation of the application. It contains the features, pages, tables, automations, database, etc...

You can see the full JSON schema documentation here.

Templates

You can open our templates to see how to configure the engine and to start from models.

Contributing

Safidea Engine is built and maintained by a small team – we'd love your help to fix bugs and add features!

You can read our contributing guide here and our code of conduct here.

License

Safidea Engine is BSL 1.1 licensed.

About

Generate your web application from a simple configuration. We are building a powerful engine allowing the complete development of a web application from a JSON configuration file.

https://safidea.com/engine

License:Other


Languages

Language:TypeScript 99.6%Language:JavaScript 0.3%Language:Shell 0.1%Language:CSS 0.0%