Installation
node ace add @oniryk/dreamerAfter installing the package, you will be prompted with some questions and a dreamer config file will be generated like this:
import { defineConfig } from '@oniryk/dreamer'
const dreamerConfig = defineConfig({
useUUID: true,
useSoftDelete: true,
bruno: {
enabled: true,
documentsDir: '/docs',
useAuth: true,
},
})
export default dreamerConfigConfiguring
- useUUID: when enabled, all models generated by the
dreamercommand will useuuidas field instead of id in the methodsfind()andfindOrFail()from Lucid. learn more - useSoftDelete: when enabled, all models generated by the
dreamercommand will implement soft deletes. It will add the fielddeleted_atin the migration file. learn more - bruno.enabled: when enabled, will generate bruno files for all routes generated by the
dreamercommand - bruno.documentsDir: specifies where bruno’s files will be placed
- bruno.useAuth: when enabled, will automatically add an
Authorization: Bearer ...into the request file.