SH8GH / adonis-rapid

MIT License
0 stars 0 forks source link

Adonis Rapid ( preview )

an redundent free auth/database/user-management configuration for adonisjs

Motivate: WHY SPEND A HOUR/DAY TRY TO SETUP AUTHENTICATION

Motivate: WHY SETUP A TEMPLATE WASTE OF TIME TO MAKE IT TO PRODUCTION

npm-image license-image typescript-image

A package for auto add authenticated pre-config plus if you using inertia from eidellev/inertiajs-adonisjs, i'm handle for you

Installation

yarn add adonis-rapid

node ace configure adonis-rapid

# choose between template you want

"what client stack you wanted use?"

> static?

"do you want to copy default rapid views?"

> yes?

# and you good to go copy what in your base folder
# to rapid resources app

Usage

(easy) just enable/disable what you using

// config/rapid.ts
export default {
    // ....

    features: [
        // > enable what you need
    ]
}

want to override the route? no problem

// providers/AppProvider
export default class AppProvider {
    public async boot() {
        const Features = this.app.container.use('SH8GH/Rapid/Features')

        Features.LoginRenderer(async ({ view }, data) => {
            return view.render('welcome', data)
        })
    }
}

How To

With Disable

with disable

With fully enable

with fully enable

Todo

Specials Thank to

Note: