JSPM

  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q45060F
  • License MIT

TypeORM module for resty.js

Package Exports

  • @restyjs/typeorm

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@restyjs/typeorm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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);