npm.io
1.0.1 • Published 5 years agoCLI

defyne

Licence
MIT
Version
1.0.1
Deps
8
Size
62 kB
Vulns
0
Weekly
0

defyne

Persisted boilerplates for all your projects.

Table of Contents

Introduction

Defyne generates a persisted boilerplate for all your projects. It helps you to generate a web service from scratch with modularized and scalable code. Follow the same standards across all your projects with defyne as your one stop tool.

Supported Tech Stack

Defyne generates boilerplate for:

Project Structure

  • src/: It consists of the source code for the new package that we are going to create
  • src/controllers/: Controllers is the place where APIs are stored
  • src/policies/: Policies refer to the middlewares in the express.js
  • src/responses/: Responses are the extended version of error classes. For example: BadRequestResponse, UnProcessableEntityResponse, etc.

Commands

Install the Defyne tool globally in your system

npm install defyne -g

Initialize the project from scratch

defyne -i

Create a new controller

defyne -gc

Create a new response

defyne -gr