https://github.com/devonfw/cobigen-devon4node-server
Nodejs (nestjs) server that will act as local server for CobiGen
https://github.com/devonfw/cobigen-devon4node-server
Last synced: about 1 year ago
JSON representation
Nodejs (nestjs) server that will act as local server for CobiGen
- Host: GitHub
- URL: https://github.com/devonfw/cobigen-devon4node-server
- Owner: devonfw
- License: apache-2.0
- Created: 2019-01-29T16:30:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-15T00:33:11.000Z (about 3 years ago)
- Last Synced: 2025-03-28T02:05:03.315Z (about 1 year ago)
- Language: TypeScript
- Size: 1.81 MB
- Stars: 0
- Watchers: 4
- Forks: 5
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[travis-image]: https://api.travis-ci.org/nestjs/nest.svg?branch=master
[travis-url]: https://travis-ci.org/nestjs/nest
[linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux
[linux-url]: https://travis-ci.org/nestjs/nest
A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
## Description
[Nest](https://github.com/nestjs/nest) server to be used for CobiGen, in order to parse and merge TypeScript files.
Master branch needs to be executed using an .exe file, passing as argument the port to be used.
## Installation
```bash
$ yarn install
```
## Running the app
```bash
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
```
## Test
```bash
# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:cov
```
## Create executable
```bash
yarn install
```
There is a packaging issue due to the external library `pkg`, you will have to manually fix a module. Go to `node_modules\@devonfw\ts-merger\dist\`, copy `ts-merger.umd.js` and paste it to `node_modules\@devonfw\ts-merger\build`. Remove file `index.js` and rename `ts-merger.umd.js`to `index.js`. Finally:
```bash
$ yarn run build
$ yarn pkg --targets latest-win-x64 --output nestserver-1.0.7.exe dist/main.js
```
:warning: Since nestserver is released seperatedly for different os, please refer to branch `dev_linux` and `dev_macos` to merge changes and release the corresponding version as well
## Publish
Please follow [this tutorial](https://yarnpkg.com/en/docs/publishing-a-package#toc-publishing-your-package)
## License
Nest is [APACHE 2.0 licensed](LICENSE).