Para executar este projeto
npm install;
npx nx run-many --target=serve --projects=simples-app,simples-api --parallel=true
acesse http://localhost:5000
Exemplo de como fica o código de um CRUD básico
Atualizar o projeto inteiro, sempre mantenha ele atualizado.
npm uninstall -g angular-cli;
npm install -g @angular/cli@latest;
npx ng update --all --force;
npm audit fix; npm audit fix --force;
rodar a API e o APP paralelamente :-D npm run dev
npx nx run-many --target=serve --projects=simples-app,simples-api --parallel=true
npx nx run-many --target=serve --projects=front,api --parallel=true
npx nx run-many --target=serve --configuration=development --projects=front,api --parallel=true --maxParallel=100
npx nx run-many --target=serve --configuration=qa --projects=front,api --parallel=true --maxParallel=100
npx nx run-many --target=serve --configuration=production --projects=front,api --parallel=true --maxParallel=100
Gerar todas as Entities do seu banco de dados
npx typeorm-model-generator -h localhost -d seubancodedados -u seuusuario -x suasenha -e mysql -o .
Criar uma nova Library NestJS
nx generate @nrwl/nest:library lib-nome-a-ser-creiada
npm i @ngrx/store-devtools @ngrx/store @ngrx/effects @ngrx/store-devtools @ngrx/schematics @angular/animations @angular/cdk @angular/cdk @angular/flex-layout @angular/material @angular/material-moment-adapter @ngx-translate/core @ngrx/router-store --save
npm i --save-dev ngrx-store-freeze
npm audit fix; npm audit fix --force;
npm i --save typeorm @nestjs/config @nestjs/typeorm @nestjs/common dotenv-flow mysql
npm i --save-dev
npm audit fix; npm audit fix --force;
https://nickymeuleman.netlify.app/blog/gui-on-wsl2-cypress
npm uninstall cypress --save-dev; npm install cypress --save-dev;
Connect the workspace to your Nx Cloud account at https://nx.app/orgs/workspace-setup?accessToken=ZjFjYzI4OWMtNzY1Ny00MjYyLWI3YmItMmRkMjhkZmNlZDdkfHJlYWQtd3JpdGU=. This will allow you to configure the cache and see detailed stats. You can do it later.
Diversos links bacanas
https://awesomeopensource.com/project/juliandavidmr/awesome-nestjs