Skip to content

NestJS環境構築サンプルのリポジトリ

Notifications You must be signed in to change notification settings

sig-code/nest-sample

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NestJS の環境構築用のリポジトリ

Docker + NestJS + Typeorm の構成になっています。
とくにカスタマイズはしていません
node イメージをもとに Nestjs/cli をインストールしています。

このリポジトリをもとに環境構築する場合は下記の記事を参考にしてください
https://zenn.dev/senri/articles/331162304a78e0
基本的には

docker compose up -d --build

コマンドで環境構築を完了することができると思われます。
できなかったらすいません。

また、マイグレーションコマンドを npm script にて簡便にしています。
基本的にDockerコンテナ内で走らせます
マイグレーションファイルを作成するとき

npm run migration:generate [名前]

マイグレーションを走らせるとき
npm run migration:run

マイグレーションの履歴を確認するとき
npm run migration:status

マイグレーションの実行を戻したいとき
npm run migration:revert

詳細はpackage.jsonを見てください

About

NestJS環境構築サンプルのリポジトリ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published