Dev Template
dt --template mvc
No more installing and configuring all basic dependencies manually every time you start a new project. the dev template can install and configure everything with a single command. A CLI that runs templates with a sequence of commands to launch your projects. Anyone (including you) can create a template that will install and run the commands needed to start your projects.
Installing the command line tool
The dev template is currently tested on Node.js 14 & 16, although it may work on older versions of Node.js. You must also have npm 6 or higher.
you need to have installed: git, npm and node
Installation is as simple as running the following command (if you see EACCES
error, reading fixing npm permissions may help):
npm install -g dev-template
Example
Create and open a new empty folder and run our hello-world as an example. wait until the process finishes and run yarn dev
after starting the server open your browser at http://localhost:3000 and see if it is showing "Hello World!"
mkdir example-dt
cd example-dt
dt --template hello-world
yarn dev
How to use
To get started you need to keep in mind one of the templates created by the community for the dev template, see the list if you don't know one by heart.
Now run follow the instructions in template documentation or only run:
dt --template {template-name}
You can get the template name into the list.
to see the template documentation click on template card in the list
footer
if you want to contribute to the project read the terms of contribution. if you want to create your own template for everyone to use read the template documentation