NIC (Nest Interaction CLI) is a simple yet powerful command-line tool designed to streamline the creation of Lambda function template-based projects. This tool makes it easier to standardize and enhance efficiency in initiating new projects, ensuring consistency and quality in development.
- Quick Creation: Generate new Lambda projects in seconds.
- Easy to Use: Simple and intuitive command-line interface.
- Verbose Option: Use
-v
or--verbose
for a detailed report of the files generated during project creation. - Template Schema Functionality: Specify a schema to customize your project creation.
NIC allows the specification of a template schema for project creation. You can use a schema in two ways:
- Default Schema: If a file named
schema.txt
is present in the current directory, NIC will automatically use it. - Custom Schema: Use the
-p
option to specify a custom path for the schema file. For example:nic create [project-name] -p ./base/schema.txt
The schema.txt
file should follow a specific format, using snake case for property names and indicating data types. Additionally, you can mark fields as optional using a ?
. Here is an example of how the schema can be structured:
uuid: ?string
name: string
age: number
language_code: string
# Clone this repository
git clone https://github.com/thiago-js/nest-interaction-cli.git
# Go to the project folder
cd nic
# Install dependencies
npm install
# Link for global use
npm link
# To generate a new Lambda project
nic create [project-name]
# For a detailed report of the generated files
nic create [project-name] -v
# To specify a custom path for the schema
nic create [project-name] -p ./base/schema.txt
# For help
nic --help
This project is under the MIT license. See the LICENSE file for more details.