Wondering what’s next for npm?Check out our public roadmap! »

    @lenne.tech/nest-server
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.6 • Public • Published

    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).

    The lenne.tech nest server can be included as an npm package (npm i @lenne.tech/nest-server) or used directly as a project (git clone https://github.com/lenneTech/nest-server.git).

    In combination with Angular (see lenne.Tech Angular example incl. ng-base) the Nest Server is an ideal basis for your next project.

    License CircleCI Dependency Status devDependency Status

    Set up your server

    The easiest way to set up your own server based on the lenne.Tech Nest Server is to use the lenne.Tech Nest Server starter kit via CLI:

    $ npm install -g @lenne.tech/cli
    $ lt server create <ServerName>
    $ cd <ServerName>
    

    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).

    Since the server is based on Nest, you can find all information about extending your server in the documentation of Nest.

    Instead of TypeORM we use MikroORM.

    To create a new Module with model, inputs, resolver and service you can use the CLI:

    $ lt server module <ModuleName>
    

    We are currently working on a documentation of the extensions and auxiliary classes that the lenne.Tech Nest Server contains. As long as this is not yet available, have a look at the source code. There you will find a lot of things that will help you to extend your server, such as:

    Running the server

    # 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

    Thanks

    Many thanks to the developers of Nest and all the developers whose packages are used here.

    License

    MIT - see LICENSE

    Install

    npm i @lenne.tech/nest-server

    DownloadsWeekly Downloads

    1,273

    Version

    0.1.6

    License

    MIT

    Unpacked Size

    1.56 MB

    Total Files

    278

    Last publish

    Collaborators

    • avatar
    • avatar