@restyjs/typeorm
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@restyjs/typeorm

import resty, { Controller, Get } from "@restyjs/core";
import { Database } from "@restyjs/typeorm";

@Controller("/")
class HelloController {
  @Get("/", [])
  index() {
    return "Hello World";
  }
}

const app = resty({
  controllers: [HelloController],
  providers: [
    Database({
      type: "sqlite",
      database: "example.db",
      entities: [],
    }),
  ],
});

app.listen(8080);

Package Sidebar

Install

npm i @restyjs/typeorm

Homepage

restyjs.com

Weekly Downloads

6

Version

0.0.2

License

MIT

Unpacked Size

25.7 kB

Total Files

20

Last publish

Collaborators

  • satishbabariya