cocina v1.0.5
Cocina
Cocina is currently in development. Use at your own risk.
Cocina is a CLI tool for scaffolding backend web APIs in Node.js. The CLI is inspired by projects like create-react-app and the Rails generator. Cocina creates a new web application based on a template that uses popular Node.js libraries like Koa, Mongoose and Jest. It also has commands for building new files like controllers, models and tests.
Installation
npm install -g cocina
Commands
cocina cook <path>
Generates a new application at the path specified. The path directory must not already exist.
cocina controller <name>
Run this this command inside an app generated by Cocina. It will create a new controller with the name specified.
cocina model <name>
The model command creates a new file in the models folder with the name provided.
Models are based on Mongoose and can be populated with field data after creation.
Example: cocina model Task
.
1 year ago
1 year ago
1 year ago
1 year ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago