Introduction
Installation
Learn how to start building applications with AdonisJS and Radonis.
1. Create AdonisJS project
npm init adonis-ts-app@latest my-radonis-application
Note
Use the web
project structure as the starting point for your application, as it comes with static file serving preconfigured. This is required for serving the Radonis client bundle.
2. Install Radonis packages
Install the two Radonis core packages.
npm install --save @microeinhundert/radonis @microeinhundert/radonis-server
3. Configure the server provider
Before Radonis can do its thing and hook into the AdonisJS lifecycle, you must register the Radonis service provider with your AdonisJS application.
node ace configure @microeinhundert/radonis-server
4. Configure the required AdonisJS addons
Radonis requires the two official AdonisJS addons @adonisjs/i18n and @adonisjs/session to be installed and configured. Execute the following commands and follow the instructions output to the terminal.
node ace configure @adonisjs/i18n
and
node ace configure @adonisjs/session
Note
The two required addons were automatically installed in your projects package.json as part of the server provider configuration. Just the configuration command of the two addons is required to be run manually.