Skip to content

🚀 This template should help get you started developing with NestJS, TypeORM + MySQL.

License

Notifications You must be signed in to change notification settings

phake-app/nestjs-mysql-typeorm-template

Repository files navigation

@phakedev/nestjs-mysql-typeorm-template

This template should help get you started developing with NestJS.

GitHub Template

Create a repo from this template on GitHub

Clone to local

npx degit phakedev/nestjs-mysql-typeorm-template my-app
cd my-app

Install dependencies

pnpm install

Run

Start a local server with the following terminal commands:

pnpm start:dev

Migration Guide

Usage

For run current migration state

  1. Check your migration queries in src/migrations
  2. pnpm run typeorm:run

For create new migration

  1. pnpm typeorm:migrate <entity-migration>
  2. Check your migration queries in src/migrations
  3. pnpm run typeorm:run

If everything went well, you have up to date entities and a migrations table listing applied migrations.

Reference links