@zg2pro-org/calculateur-conges-api
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-20200224092041928 • Public • Published

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

Generation of a NestJs project compatible with frontend frameworks (Vue, Angular, React and so on)

1-

$ npm install -g @nestjs/cli date-now-cli
$ nest new app-api
$ cd app-api
$ npm install --save-dev date-now-cli

2- Then go to the package.json and add the scripts:

$ "prepublish:version": "npm version 0.0.0-$(date-now --format='YYYYMMDDHHmmssSSS') --no-git-tag-version"

3- Also rename your project with your organization in prefix : name : "@my-org/app-api" This will help you publish in npm registry

4- Then go to the tsconfig.json file and check the following properties:

    "module": "commonjs",
    "declaration": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es2017",
    "sourceMap": true,

5- In your code, when you inject a dependency, pay attention to inject in this fashion:

constructor(@Inject(HttpService) protected http) {
    }

This will allow Angular to override the dependency during the injection as Angular uses a different DI engine (but compatible) and different set of core tools

Readme

Keywords

none

Package Sidebar

Install

npm i @zg2pro-org/calculateur-conges-api

Weekly Downloads

12

Version

0.0.0-20200224092041928

License

MIT

Unpacked Size

520 kB

Total Files

22

Last publish

Collaborators

  • zg2pro