-
Notifications
You must be signed in to change notification settings - Fork 0
Home
The Turbo engine is a command-based framework for building API (and web) based applications using either built-in plugins or community/custom ones.
Documentation To access the documentation, please use the sidebar for a list of features.
Not sure how to get started? We have created a boilerplate project you can use to get your started that is pre-setup with Turbo, Prisma ORM, and MongoDB setup as a single node replica, alongside a frontend setup for Vue 3 and Vite.
The Turbo Starter project is currently being updated ready for the v1 release with examples of all functionality.
With Yarn (preferred):
yarn add @symbux/turbo
With NPM:
npm install --save @symbux/turbo
Turbo comes with tons of great features and core plugins out of the box including Http and WebSocket plugins for running servers for both and an existing Discord plugin for creating bots using the new slash commands and utilising SSO (single sign on) for Discord. Additionally a new Vite plugin is being worked on allowing you to server-side render your Vue, React, other application.
Below are all the options.
Name | Description | Default |
---|---|---|
autowire |
Whether to enable autowire for auto-scanning and discovering modules. | false |
folders |
Custom array of folders to scan, used with scanFoldersOnly . |
undefined |
scanFoldersOnly |
Whether to use the folders array for autowire to scan, rather than the project directory. |
false |
translations |
The path to the translations folders. | undefined |
database |
Whether to enable the Prisma ORM for database connectivity. | false |
logger |
A custom logger that implements the ILogger interface. |
undefined |
logLevels |
An array of the default log levels to log. | ['info', 'warn', 'error'] |
basepath.* |
If your project uses different folders from /src for source code, and /dist for production code, use this to define the correct paths. |
undefined |
basepath.source |
Folder path to source code, use if not standard /src only. |
undefined |
basepath.compiled |
Folder path to compiled code, use if not standard /dist only. |
undefined |
errors.* |
Custom handling of errors (exceptions). | undefined |
errors.handler |
A function that accepts an error parameter, can be sync or async. | undefined |
errors.continue |
A boolean of whether to continue running after an uncaughtException is called. | false |
- Controllers
- Middleware
- Autowire
- Plugins
- Tasks
- Fibres
- Authentication
- Registry
- Services
- Dependecy Injection
- Translations (i18n)
- Safe Quit
- Exception Handling
- Event Listener
- Custom Logger
- HTTP Plugin - Built-In
- WS Plugin - Built-In
- Discord Plugin - External
- Vite Plugin - External
- Inspect Plugin - External
- CLI Plugin - External
- Got an issue? Join our Discord
- Need your own plugin? Contact Me
- Have an idea? Let's Discuss
- Want to support me? Buy me a coffee