1.3.58 • Published 4 years ago

module-generator-plugin v1.3.58

Weekly downloads
-
License
MIT
Repository
github
Last release
4 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

4 years ago

1.3.57

4 years ago

1.3.58

4 years ago

1.3.56

4 years ago

1.3.53

4 years ago

1.3.51

4 years ago

1.3.52

4 years ago

1.3.50

4 years ago

1.3.48

5 years ago

1.3.49

4 years ago

1.3.47

5 years ago

1.3.39

5 years ago

1.3.37

5 years ago

1.3.38

5 years ago

1.3.42

5 years ago

1.3.43

5 years ago

1.3.40

5 years ago

1.3.41

5 years ago

1.3.44

5 years ago

1.3.45

5 years ago

1.3.35

5 years ago

1.3.36

5 years ago

1.3.33

5 years ago

1.3.34

5 years ago

1.3.29

5 years ago

1.3.31

5 years ago

1.3.32

5 years ago

1.3.30

5 years ago

1.3.24

5 years ago

1.3.25

5 years ago

1.3.22

5 years ago

1.3.23

5 years ago

1.3.28

5 years ago

1.3.26

5 years ago

1.3.27

5 years ago

1.3.21

5 years ago

1.3.20

5 years ago

1.3.14

5 years ago

1.3.17

5 years ago

1.3.18

5 years ago

1.3.15

5 years ago

1.3.16

5 years ago

1.3.19

5 years ago

1.3.10

5 years ago

1.3.13

5 years ago

1.3.12

5 years ago

1.3.9

5 years ago

1.3.8

5 years ago

1.3.7

5 years ago

1.3.6

5 years ago

1.3.5

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago