Lucid: How to use lucid outside adonis app ?

Created on 6 Nov 2017  路  14Comments  路  Source: adonisjs/lucid

Is any way to use Adonis model outside the app, not bootsraping all application.

I'm using dev version of adonis 4.0

Most helpful comment

It will be possible to do it with the new version.
More information coming soon!

All 14 comments

U mean using Lucid without Adonis?

Yes, or bootstrap only models of application without controllers, routers etc.
I want to insert parsed data in database using Lucid.
I tried to require('./app/Models/someclass') and it gives me an error.

I still don't get it

  1. Do u have an Adonis app and trying to require model like that
  2. Or you have a separate app and you are trying to integrate Lucid?

I've got 2 apps, first Adonis, second grabber, and I want to integrate Lucid into grabber.

Hey @fzdmd! 馃憢

What is grabber?

In any case, Lucid is currently not a standalone (framework-agnostic) package.
We have the plan to remove these dependencies around Adonis, but this isn't a priority.
So you cannot use Lucid outside of an Adonis application (for the moment).

Any updates?

It will be possible to do it with the new version.
More information coming soon!

Is it possible to just use "next" branch and use Lucid standalone?

Will be great, any news?

Standalone support was dropped!
If you want to use Lucid, use AdonisJS.

Thanks for your reply

as official standalone support dropped I was wondering if anyone else is doing it ? I would love to use it with multiple frameworks. thx :-)

We switched to Laravel. Much better

@Johnson444 I'd say objection js is very similar to lucid. Also built on knex and has some shortcuts that lucid does not

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

babadee08 picture babadee08  路  6Comments

watzon picture watzon  路  3Comments

hectorgrecco picture hectorgrecco  路  3Comments

niallobrien picture niallobrien  路  4Comments