1.3.58 • Published 3 years ago

module-generator-plugin v1.3.58

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Angular

Create Angular APP

  1. Install angular/cli npm i -g @angular/cli

  2. Install plugin

npm i -g module-generator-plugin
  1. Find your global node_modules whereis node_modules

  2. run command to create new project:

ng new -c <global node_modules path>/node_modules/module-generator-plugin
  • type the name of project
  • go to project directory cd <project name>
  • run npm install npm i
  • run app npm run serve

  • open your browser on http://localhost:4200

Create Angular module

  1. Find your global node_modules whereis node_modules

  2. config your package.json, add new script:

"scripts": {
    "create": "ng g <global node_modules path>/module-generator-plugin:ng-module"
}
  1. Just use it on project
npm run create <module name>

It will be create new module to src/app/modules and create service to src/app/_services/api Just import module and service.

Nest Js

Create NestJS APP

  1. Install nest/cli npm i -g @nestjs/cli

  2. Install plugin

npm i -g module-generator-plugin
  1. Find your global node_modules whereis node_modules

  2. run command to create new project:

nest new -c <global node_modules path>/module-generator-plugin
  • type the name of project
  • got to project directory cd <project name>
  • run npm install npm i
  • run app npm run serve

App settings is for postgresql database, change database config in ormconfig.json file.

  • open your browser on http://localhost:3000/api/docs
  • view swagger docs

Create NestJs module

  1. Find your global node_modules whereis node_modules

  2. config your package.json, add new script:

"scripts": {
    "create": "nest g -c <global node_modules path>/module-generator-plugin nest-module"
}
  1. Just use it on project
npm run create <module name>

It will be create new module to src/modules and autoimport it on app.module

For Linux

create shurtcuts for operation system

$ nano ~/.bashrc

add 2 lines: 1. For Angular:

alias new-ng='ng new -c <global node_modules path>/module-generator-plugin'
  1. For NestJS:
alias new-nest='nest new -c <global node_modules path>/module-generator-plugin'

After this, restart terminal and use as command new-ng - for Angular app and new-nest for NestJS app.

1.3.54

3 years ago

1.3.57

3 years ago

1.3.58

3 years ago

1.3.56

3 years ago

1.3.53

3 years ago

1.3.51

3 years ago

1.3.52

3 years ago

1.3.50

3 years ago

1.3.48

3 years ago

1.3.49

3 years ago

1.3.47

3 years ago

1.3.39

3 years ago

1.3.37

3 years ago

1.3.38

3 years ago

1.3.42

3 years ago

1.3.43

3 years ago

1.3.40

3 years ago

1.3.41

3 years ago

1.3.44

3 years ago

1.3.45

3 years ago

1.3.35

3 years ago

1.3.36

3 years ago

1.3.33

3 years ago

1.3.34

3 years ago

1.3.29

3 years ago

1.3.31

3 years ago

1.3.32

3 years ago

1.3.30

3 years ago

1.3.24

3 years ago

1.3.25

3 years ago

1.3.22

3 years ago

1.3.23

3 years ago

1.3.28

3 years ago

1.3.26

3 years ago

1.3.27

3 years ago

1.3.21

3 years ago

1.3.20

3 years ago

1.3.14

3 years ago

1.3.17

3 years ago

1.3.18

3 years ago

1.3.15

3 years ago

1.3.16

3 years ago

1.3.19

3 years ago

1.3.10

3 years ago

1.3.13

3 years ago

1.3.12

3 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago