Never Paint Mohawks

    templates-generator

    1.0.6 • Public • Published

    CLI Template Generator

    A CLI with some basic templates to help you develop your projects.

    The currently existing templates are

    TEMPLATES DESCRIPTION
    postgres-docker-compose Generates a basic docker compose with postgres
    serverless-lambda Generates a serverless lambda project with typescript
    typescript-basic-project Generates a clean project with typescript set


    Getting started

    How to run

    after installing the CLI via npm run the command below and select the desired template

    templates-generator

    Install as a global

    npm i  -g templates-generator

    Install the project after clone

    npm install

    Build

    npm run build

    Execute

    npm run start

    or

    npm link

    After link you can run in any folder

    templates-generator

    Folder Structure for typescript-basic-project

    .
    ├── package.json
    ├── README.md
    ├── src
    │   ├── index.ts
    │   ├── interfaces
    │   │   └── sample.interface.ts
    │   ├── services
    │   │   └── sample.service.ts
    │   └── shared
    │       └── Logger.ts
    ├── tsconfig.json
    ├── tslint.json
    └── yarn.lock
    

    Folder Structure for serverless-lambda

    .
    ├── helpers
    └── src
        ├── infra
        │   ├── config
        │   ├── container
        │   └── http
        ├── modules
        │   └── RandomSample
        │       └── Sample
        │           ├── interfaces
        │           └── useCases
        ├── server
        ├── shared
        │   ├── adapters
        │   ├── contracts
        │   ├── exceptions
        │   ├── responses
        │   └── types
        └── utils
    

    Install

    npm i templates-generator

    DownloadsWeekly Downloads

    1

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    805 kB

    Total Files

    111

    Last publish

    Collaborators

    • henriquemsouza