0.0.6 • Published 1 year ago

kousta-cli v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Kousta Node CLI

Kousta Node CLI is a command-line tool designed to bootstrap Node.js API projects quickly and efficiently. It supports creating new projects with different database options and adding authentication features.

Installation

To install Kousta Node CLI globally, run:

npm install -g kousta-cli

Usage

The CLI provides various commands to create projects and resources. Below are the available commands and their usage.

General Usage

kousta-cli command

Create Project

Creates a new Node.js API project with specified options.

kousta-cli create-project [project-name] [options]
  • Options
    • db, --database : Add database support. Supported values are mongodb and mysql. Default is mongodb.
    • auth, --authentication: Add authentication support.

Examples

kousta-cli create-project my-project -db mongodb -auth kousta-cli create-project another-project --database mysql

Make Resource

Creates a new resource in the project.

kousta-cli make:resource  [resource-name]

Help Command

Display help information about the CLI and its commands.

kousta-cli --help

Version Command

Display the version of the CLI.

kousta-cli --version

Project Structure

After creating a project, the following structure will be generated:

my-project/
├── src/
│   ├── database/
│   ├── helpers/
│   ├── middleware/
│   ├── resources/
│   ├── utils/
│   ├── app.ts
│   └── index.ts
├── .env
├── .eslintrc.js
├── .prettierrc.js
├── kousta.json
├── package-lock.json
├── package.json
├── tsconfig.json
└── README.md

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

License

This project is licensed under the MIT License.

Author

Oussama Tailba

This README.md file is formatted to provide clear instructions and comprehensive information for users to understand and use the kousta-cli effectively, presented in a structured and visually appealing manner.

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago