/nest-api-example

A Nestjs example API using TypeORM with SQLite.

Primary LanguageTypeScript

nest-api-example

Description

A Nest example API using TypeORM with SQLite for simplicity.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

Entity

{
  id: 1,
  genericField: "string"
}

Routes

  • {/, GET}: main index
  • {/entities, GET}: list of all entities created
  • {/entities/create, POST}: entity creation path
  • {/entities/:id/update, PUT}: entity update path
  • {/entities/:id/delete, DELETE}: entity deletion path