Skip to content

ghwrivas/monorepo-example

Repository files navigation

MxOnboardingWorkspace

Pasos que ejecute

1-Desinstale angular/cli

npm uninstall -g @angular/cli

2-Limpiar cache

npm cache clean --force

3-Instalar ultima version angular/cli (para trabajar con ultima version de angular)

npm install -g @angular/cli

4-Crear workspace

npx create-nx-workspace@latest

5-Instalar nx

npm install -g nx

6-Creamos la lib share/components

nx g @nrwl/angular:lib --name=shared/components

7-Creamos el componente header comun a todas las apps

nx g @nrwl/angular:component header --project=shared-components

8-Creamos las apps web-ui y web-store

ng generate @nrwl/angular:application

9-Ejecutamos ambas apps

ng serve web-ui --port=4100

ng serve web-store --port=4200

10-Creamos lib para feature login

nx g @nrwl/angular:lib --name=feature-login --routing

nx g @nrwl/angular:component login --project=feature-login

11-Creamos lib para feature home

nx g @nrwl/angular:lib --name=feature-home --routing

nx g @nrwl/angular:component home --project=feature-home

12-Creamos lib para feature otp

nx g @nrwl/angular:lib --name=feature-otp --routing

nx g @nrwl/angular:component otp --project=feature-otp

13-Creamos libs para shell-web y para shell-store

nx g @nrwl/angular:lib --routing --lazy --name=shell-web

nx g @nrwl/angular:lib --routing --lazy --name=shell-store


13-Al final se configuran las rutas para la app web y la app store.

14-Instalar dependencia para crear un backend con nest

npm install -D @nrwl/nest@13.8.3

15-Creamos la aplicacion backend

nx generate @nrwl/nest:application backend

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published