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!
NTM - Node Template Manager
- 🚀 Initialize your new projects faster
- ✏️ Create custom templates
- 💓 Share with community
- 🖥 Be part of this project
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.
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
Just install the NPM package globally
npm install -g node-template-manager
Check if was installed successfully
ntm --version
There're few things you can do with Node Template Manager. Take a look!
ntm init [template] [projectPath]
Get all available templates. Simple!
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!
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
Well, you've just create a new template with the create command. What to do next?
- 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'.
-
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
-
If you have already created files, copy them into files folder
-
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.
Working in...
- @csanbardev - Idea & Initial work