Skip to content
No description, website, or topics provided.
TypeScript TSQL JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src use cascade.all in author.books collection Dec 2, 2019
.gitignore initial commit with MikroORM v3 Nov 15, 2019
.prettierrc initial commit with MikroORM v3 Nov 15, 2019
README.md update dependencies, add support for cli and fix the build Nov 27, 2019
docker-compose.yml initial commit with MikroORM v3 Nov 15, 2019
mysql-schema.sql
nest-cli.json initial commit with MikroORM v3 Nov 15, 2019
nodemon-debug.json initial commit with MikroORM v3 Nov 15, 2019
nodemon.json initial commit with MikroORM v3 Nov 15, 2019
package.json update dependencies, add support for cli and fix the build Nov 27, 2019
tsconfig.json initial commit with MikroORM v3 Nov 15, 2019
tsconfig.spec.json initial commit with MikroORM v3 Nov 15, 2019
tslint.json initial commit with MikroORM v3 Nov 15, 2019
webpack.config.js initial commit with MikroORM v3 Nov 15, 2019
yarn.lock update dependencies, add support for cli and fix the build Nov 27, 2019

README.md

Nest + MySQL + TypeScript example integration

  1. Install dependencies via yarn or npm install
  2. Run docker-compose up -d to start mysql
  3. Create database schema via npx mikro-orm schema:create -r. This will also create the database if it does not exist.
  4. Run via yarn start or yarn start:dev (nodemon)
  5. Example API is running on http://localhost:3000

Available routes:

GET     /author        finds all authors
GET     /author/:id    finds author by id
POST    /author        creates new author
PUT     /author/:id    updates author by id
GET     /book          finds all books
GET     /book/:id      finds book by id
POST    /book          creates new book
PUT     /book/:id      updates book by id
You can’t perform that action at this time.