- Clonar el repositoriio
- Ejecutar
yarn install
- Tener Nest CLI instalado
npm i -g @nestjs/cli
- Levantar la base de datos
docker-compose up -d
-
Clonar el archivo
.env.template
y renombrar la copia a.env
-
Llenar las variables de entorno dfinidas en el
.env
-
Ejecutar la aplicacion en dev:
yarn stary:dev
- Reconstruir la Bd con la semilla
localhost:3000/api/v2/seed
- Crear el archivo
.env.prod
- Llenar las variables de entorno de produccion
- Crear la nueva imagen
docker-compose -f docker-compose.prod.yaml --env-file .env.prod up --build
- Correr la imagen ejecutamos
docker-compose -f docker-compose.prod.yaml --env-file .env.prod up
Heroku redeploy con cambios:
git add .
git commit -m "cambios a giardar"
git push heroku <master|main>
Heroku redeploy sin cambios:
git commit --allow-empty -m "tigger Heroky deploy"
git push heroku <master|main>
- Mongo Db
- Nest
- Heroku
- Docker