Skip to content

Curso-Microservicios-Nest/orders-ms

Repository files navigation

Orders - microservice

Installation

npm install

🚀Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

💎Prisma - Migraciones

# Instalar el Cliente de Prisma
npm install @prisma/client

# Configura e inicializa Prisma en el proyecto
npx prisma init

# Ejecutar las migraciones y crear la base de datos
npx prisma migrate dev

# Generar una nueva migración
npx prisma migrate dev --name MigrationName

🐳 Docker

Levantar la base de datos para las ordenes

docker-compose up -d

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.