Coder Social home page Coder Social logo

hritikr / node-mongo-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from code-collabo/node-mongo-cli

0.0 0.0 0.0 465 KB

@code-collabo's nodejs command line interface to bootstrap 3 kinds of API boilerplate templates for your nodejs and/or mongoDB development.

Home Page: https://code-collabo.gitbook.io/node-mongo/

License: Other

JavaScript 100.00%

node-mongo-cli's Introduction

@code-collabo/node-mongo-cli

All Contributors

npm version Npm package total downloads contributions welcome License: ISC GitHub issues GitHub pull requests

Supported node versions: node v12.x to v16.x

Operating Systems: Mac OS and Windows OS

The node-mongo-cli is a command-line interface made with nodejs. It bootstraps any of these 3 boilerplate templates for your nodejs and/or mongoDB development:

Features

node-mongo

CLI

  • CLI bootstraps the esm, cjs or ts templates for nodejs and/or mongoDB development.
  • Install dependencies and intialize git for the template bootstrapped or choose to skip them.
  • Folders are automatically created based on user entry in prompt or command-line.
  • Default folder name is provided and incremented if name already exists.

Templates

  • Development environment already set up with @babel (for esm template only) and eslint.
  • Two mongoDB connection options to pick from in the templates: your installed mongoDB and mongoDBatlas.
  • Demo CRUD app you can go and download to test that your connection is setup and show example usage of the templates.

Installation

Install CLI globally with this command:

npm install -g @code-collabo/node-mongo-cli

Command

After installing globally, use the node-mongo command.

node-mongo

Show help

node-mongo --help

Usage

node-mongo <folder_name> <template>

Usage example

Replace <folder_name> with your preferred folder name. Replace <template> with any of these: esm, cjs or ts (note: the ts template is not available yet). The example below will bootstrap the cjs template i.e. the common js template into a folder named test-folder.

node-mongo test-folder cjs

Flags

-h, --help          Show help
-v, --version       Show version number
-i, --install       Install dependencies
-g, --git           Initialize git repo
-s, --skip-install  Skip installing dependencies
-x, --skip-git      Skip initializing git
-y, --yes           See note on --yes flag below

Prompts

If you do not specify one or both arguments above, you will be prompted to add your folder name and/or choose template option from list. For foldername, you can choose to use the default foldername provided in the prompt or type in your preferred folder name.

Skip prompts

No prompt when --yes flag is used. It skips both install and git init, and uses esm template as default if no template is specified or if template entered is not in the template collection. In the case of folder name, default foldername is used if no folder name is specified or when folder name already exists.

Documentation

See the links for the official node-mongo documentation and Code Collabo documentation.

Want to contribute?

Love the project and wish to contribute? See contribution guide in the node-mongo documentation for how to start contributing. You can also reach out to @Ifycode in case you need any assistance.

Appreciation

Appreciation goes to @dkundel, @academind, @CodAffection, @coryhouse whose awesome youTube videos, articles and/or courses helped a lot while building the node-mongo project - cli, templates and/or demo app. Also to @IsraelObiagba and @jiobiagba for their help.


Dominik Kundel

๐Ÿง‘โ€๐Ÿซ

Academind

๐Ÿง‘โ€๐Ÿซ

CodAffection

๐Ÿง‘โ€๐Ÿซ

Cory House

๐Ÿง‘โ€๐Ÿซ

Israel Obiagba

๐Ÿง‘โ€๐Ÿซ

Joseph Obiagba

๐Ÿง‘โ€๐Ÿซ

Contributors โœจ

Thanks to these amazing contributors to the node-mongo-cli project. This project follows the all-contributors specification. See emoji key. Contributions of any kind welcome!


Obiagba Mary Ifeoma

๐Ÿ’ป ๐Ÿ“–

Chikezie Joachim

๐Ÿ’ป

Hritik R

๐Ÿ“– ๐Ÿ’ป

Keithan Philander

๐Ÿ› ๐Ÿ’ป

Rashid

๐Ÿ’ป

Muhammad Izhar

๐Ÿ“–

Abhishek K M

๐Ÿ“–

Olaleye Blessing

๐Ÿ“–

All Contributors

๐Ÿš‡

node-mongo-cli's People

Contributors

ifycode avatar allcontributors[bot] avatar sync271 avatar hritikr avatar chuddyjoachim avatar izhar360 avatar olaleye-blessing avatar keithanphilander avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.