1.0.1 • Published 3 years ago

defyne v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

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