54 lines
992 B
Markdown
54 lines
992 B
Markdown
<p align="center">
|
|
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
|
|
</p>
|
|
|
|
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
|
|
[circleci-url]: https://circleci.com/gh/nestjs/nest
|
|
|
|
|
|
## Description
|
|
|
|
[Products](http://gittea.local:3000/udemy_nest_microservices/Products-microservices)
|
|
Curso de microservicios de Udemy (con Fernando Herrara).
|
|
|
|
## Proyecto: configuracion.
|
|
|
|
1. Clonar el repositorio
|
|
2. Instalar dependencias
|
|
3. Crear un archivo `.env` basado en `env.template`
|
|
4. Ejecutar migracion de prisma `npx prisma migrate dev`
|
|
5. Ejecutar `npm run start:dev`
|
|
|
|
|
|
```bash
|
|
$ npm install
|
|
```
|
|
|
|
## Compile and run the project
|
|
|
|
```bash
|
|
# development
|
|
$ npm run start
|
|
|
|
# watch mode
|
|
$ npm run start:dev
|
|
|
|
# production mode
|
|
$ npm run start:prod
|
|
```
|
|
|
|
## Run tests
|
|
|
|
```bash
|
|
# unit tests
|
|
$ npm run test
|
|
|
|
# e2e tests
|
|
$ npm run test:e2e
|
|
|
|
# test coverage
|
|
$ npm run test:cov
|
|
```
|
|
|
|
|