2021-08-15 20:38:31 +02:00
|
|
|
# Nork
|
|
|
|
Simple node.js tool that extends express projects.
|
|
|
|
|
|
|
|
- [About](#about)
|
|
|
|
- [Installation](#installation)
|
|
|
|
- [How to use](#how-to-use)
|
2021-08-14 15:55:17 +02:00
|
|
|
|
|
|
|
## About
|
2021-08-15 20:38:31 +02:00
|
|
|
The point of this tool is to add into express some feel of php framework Laravel. Primarily get simply express app into MVC architecture
|
2021-08-14 15:55:17 +02:00
|
|
|
|
|
|
|
## Installation
|
2021-08-15 20:38:31 +02:00
|
|
|
```
|
|
|
|
npm install -g nork
|
|
|
|
```
|
|
|
|
Tohle nainstaluje nork globálně. Pokud byste chtěli nainstalovat nork pouze pro jeden projekt, je možné ho nainstalovat i lokálně.
|
|
|
|
Pro lokální instalaci:
|
|
|
|
```
|
|
|
|
npm install nork
|
|
|
|
```
|
2021-08-14 15:55:17 +02:00
|
|
|
## How to use
|
2021-08-15 20:38:31 +02:00
|
|
|
```
|
|
|
|
Usage: nork <command> [options]
|
2021-08-14 15:55:17 +02:00
|
|
|
|
2021-08-15 20:38:31 +02:00
|
|
|
Options:
|
|
|
|
-v, --version output the version number
|
|
|
|
-h, --help output usage information
|
2021-08-14 15:55:17 +02:00
|
|
|
|
2021-08-15 20:38:31 +02:00
|
|
|
Commands:
|
|
|
|
create [app-name] create a new project
|
|
|
|
make:controller create a new controller
|
|
|
|
make:middleware create a new middleware
|
|
|
|
make:model create a new model
|
|
|
|
make:route create a new route
|
|
|
|
make:test create a new test
|
|
|
|
make:view create a new view
|
|
|
|
setup set up an existing project for nork
|
|
|
|
```
|