Skip to content

Streamline the initiation of Node.js projects for users with pre-defined templates

License

Notifications You must be signed in to change notification settings

node-template-manager/ntm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project logo

ntm | node-template-manager

Status License


Streamline the initiation of Node.js projects for users with pre-defined templates. You can use your favorite terminal to initialize your new project. Also define custom templates and share with community!

📝 Table of Contents

🧐 About

NTM - Node Template Manager

  • 🚀 Initialize your new projects faster
  • ✏️ Create custom templates
  • 💓 Share with community
  • 🖥 Be part of this project

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You just need to have installed node.js. If you haven't it yet, I recommend you to use Node Version Manager (NVM); for installing it, check the link bellow:

NVM for Linux & Mac NVM for Windows

Installing

Just install the NPM package globally

npm install -g node-template-manager

Check if was installed successfully

ntm --version

🎈 Usage

There're few things you can do with Node Template Manager. Take a look!

Show all available templates

ntm init [template] [projectPath]

Get all available templates. Simple!

Init project with template

ntm init [template] [projectPath]

Introduce the template's name and where to create the project. If you don't indicate the project's path, it'll take where you invoke the command. There's also a default template for you!

Create a new custom template

ntm create <create>

Init a blank template for you. You only have to configure it. For that, look for it in docs' section, where you can find an easy guide to custom your new template and share it with others. -> To docs

📖 Docs

How to define a custom template

Well, you've just create a new template with the create command. What to do next?

  1. Find the package folder It should be in many places depending your OS.
  • At Windows, you can try in 'C:\Users{YourUser}\AppData\Roaming\npm\node_modules\node-template-manager' or in 'C:\Users{YourUser}\AppData\Roaming\npm-cache'.
  • At Linux, you can try in '/usr/local/lib/node_modules' or '~/.npm-global'.
  1. After that, be sure you can edit this folder & find the templates' folder, where all available templates are saved. There must be your custom template

  2. If you have already created files, copy them into files folder

  3. At last, write the main .json following the instructions inside it. This one should have been called as your template's name.

In future, it's raised adding a new tool to custom the template easily.

How to share a custom template

Working in...

✍️ Authors