New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lenne.tech/nest-server

Package Overview
Dependencies
Maintainers
1
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lenne.tech/nest-server

Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
65
increased by103.13%
Maintainers
1
Weekly downloads
 
Created
Source

lenne.Tech Nest Server

Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).

Description

The lenne.Tech Nest Server is based on the Nest framework and can either be used and extended as a boilerplate (git clone) or integrated as a module (npm package).

Boilerplate / npm package

Boilerplate You can use the git repository as a template to start your new server. So you can manipulate the complete source code of the nest server, but you have to update the core yourself.

$ git clone https://github.com/lenneTech/nest-server.git
$ cd node-server
$ npm install

npm package
A simpler and recommended variant is the integration via npm package.

$ cd YOUR-PROJECT
$ npm i @lenne.tech/nest-server

src/main.ts:
(see https://github.com/lenneTech/nest-server/tree/master/src/main.ts)

import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from '@nestjs/platform-express';
import { ServerModule } from '@lenne.tech/nest-server';

/**
 * Preparations for server start
 */
async function bootstrap() {

  // Create a new server based on fastify
  const server = await NestFactory.create<NestExpressApplication>(

    // Include server module, with all necessary modules for the project
    ServerModule,
  );

  // Enable cors to allow requests from other domains
  server.enableCors();

  // Start server on configured port
  await server.listen(3000);
}

// Start server
bootstrap();

Running the app

# development
$ npm start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Keywords

FAQs

Package last updated on 20 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc