Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nuxt-typeorm

TypeORM integration for Nuxt 📖 Release Notes

About

Provides simple, drop-in support for TypeORM in nuxt projects.

Setup

  1. Add nuxt-typeorm dependency to your project
yarn add eyeruleall/nuxt-typeorm # or npm install eyeruleall/nuxt-typeorm
  1. Pass in your connection options inside the nuxt.config file.

    See TypeORM Docs for details.

// example options
{
    type: 'sqlite',
    database: './database/db.sqlite',
    entities: ['./**/*.entity.{ts, js}'],
    logging: false,
    synchronize: true
}
  1. Add nuxt-typeorm to the modules section of nuxt.config.js

    THIS STEP IS REQUIRED. THIS PACKAGE WILL NOT READ CONFIGURATION FROM FILES

{
  modules: [
    [
      "nuxt-typeorm",
      {
        /* connection options go here */
      }
    ]
  ];
}

or

{
  modules: ["nuxt-typeorm"],
  typeorm: {
    /* or here */
  }
}
  1. Of course, only try to connect to TypeORM from server.

License

MIT License

Copyright (c) eyeruleall eyeruleall@gmail.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages