hdmun / server-agent-admin-api

MIT License
1 stars 0 forks source link

nestjs 마이그레이션 #1

Open hdmun opened 2 years ago

hdmun commented 2 years ago

Setup Script

npm i -g @nestjs/cli

nest new server-agent-admin-api

⚡  We will scaffold your app in a few seconds..

CREATE server-agent-admin-api/.eslintrc.js (665 bytes)
CREATE server-agent-admin-api/.prettierrc (51 bytes)
CREATE server-agent-admin-api/nest-cli.json (118 bytes)
CREATE server-agent-admin-api/package.json (2007 bytes)
CREATE server-agent-admin-api/README.md (3340 bytes)
CREATE server-agent-admin-api/tsconfig.build.json (97 bytes)
CREATE server-agent-admin-api/tsconfig.json (546 bytes)
CREATE server-agent-admin-api/src/app.controller.spec.ts (617 bytes)
CREATE server-agent-admin-api/src/app.controller.ts (274 bytes)
CREATE server-agent-admin-api/src/app.module.ts (249 bytes)
CREATE server-agent-admin-api/src/app.service.ts (142 bytes)
CREATE server-agent-admin-api/src/main.ts (208 bytes)
CREATE server-agent-admin-api/test/app.e2e-spec.ts (630 bytes)
CREATE server-agent-admin-api/test/jest-e2e.json (183 bytes)

? Which package manager would you ❤️  to use? npm
√ Installation in progress... ☕

🚀  Successfully created project server-agent-admin-api
👉  Get started with the following commands:

$ cd server-agent-admin-api
$ npm run start

                          Thanks for installing Nest 🙏
                 Please consider donating to our open collective
                        to help us maintain this package.

               🍷  Donate: https://opencollective.com/nest
hdmun commented 2 years ago

TypeORM

npm install --save @nestjs/typeorm typeorm mssql

hdmun commented 2 years ago

https://docs.nestjs.com/techniques/database#async-configuration

npm i --save @nestjs/config