Skip to content

cli tool for initializing project structure for node express.js web app

License

Notifications You must be signed in to change notification settings

Elijah57/node-cli-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

init_project

init_project is a CLI tool designed to help developers quickly initialize a project structure with predefined directories and files. It simplifies the process of setting up a new project, ensuring consistency and saving time.

Features

  • 🚀Automatically creates a set of predefined directories.
  • 🚀Adds specified files within each directory.
  • 🚀Allows customization of file extensions.

Installation

To install the init_project package, use pip:

pip install init_project

Usage

After installing, you can use the init_project command to initialize your project structure.

Basic Usage

To create the project structure in the current directory with files having a .py extension, run:

init_project . py

Specifying a Different Directory

To create the project structure in a specific directory (e.g., /path/to/your/project) with files having a .js extension, run:

init_project /path/to/your/project js

Project Structure

The tool will create the following directory structure:

/path/to/your/project
│
├── controllers
│   └── __init__.ext
│
├── middlewares
│   └── __init__.ext
│
├── utils
│   └── __init__.ext
│
├── routers
│   └── __init__.ext
│
├── models
│   └── __init__.ext
│
├── configs
│   ├── __init__.ext
│   └── config.ext
│
└── services
    └── __init__.ext

Where .ext is the file extension you specified when running the init_project command.

Development

Setting Up for Development

To set up a development environment:

  1. Clone the repository:

    git clone https://github.com/yourusername/init_project.git
    cd init_project
  2. Create and activate a virtual environment (optional but recommended):

    python -m venv env
    source env/bin/activate  # On Windows use `env\Scripts\activate`
  3. Install the package in editable mode with development dependencies:

    pip install -e .

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.

Reporting Issues

If you encounter any issues, please report them on the issue tracker.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

cli tool for initializing project structure for node express.js web app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages