Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@restyjs/typeorm

0.0.1-alpha.23 • 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);

Install

npm i @restyjs/typeorm

DownloadsWeekly Downloads

2,404

Version

0.0.1-alpha.23

License

MIT

Unpacked Size

25.5 kB

Total Files

19

Homepage

restyjs.com

Last publish

Collaborators

  • avatar