1.0.4 • Published 7 months ago

node-project-folder v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

node-project-folder

NodeJS Project Setup CLI
  1. Description The NodeJS Project Setup CLI is a command-line tool designed to simplify the process of initializing and scaffolding a new Node.js project. It helps you save time by creating a complete, structured project with a professional folder layout, boilerplate code, and essential dependencies.

    No need to create server , servers are already created .all the packages are also preinstalled. Just Add your mongo username and password.

    open src/index.js

    auth: {
    username: '',
    password: '',
    }

and add port & dbDriver to the .env file.

PORT =
DBSTRING =
  1. Features Generates a ready-to-use Node.js project structure: Folders: src, controllers, models, routes, utils, public, etc. Files: .env, README.md, package.json, .gitignore, and more. Includes boilerplate code for: A basic Express.js server setup. Socket.io integration for real-time communication. Mongoose connection to MongoDB. Automatically installs essential dependencies like express, mongoose, socket.io, and dotenv. Adds customizable fields like project name and port in the .env file. Supports clean coding practices and modular architecture. Includes example routes, controllers, and models to kickstart development.

  2. Installation To install the CLI globally.

    npm install -g node-project-folder
    npx create-node-project my-new-project
    npm install
    npm start
  3. Default Folder Structured (JavaScript) my-new-project

    Logo

  4. Default Folder Structured (TypeScript) my-new-project

    Logo

  1. .env

    add these to the .env file

OptionDescriptionDefault
PORTDatabase port addresslocalhost
DBSTRINGDatabase string/mongo
1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

8 months ago

1.0.0

8 months ago