1.1.3 • Published 2 years ago

chetajs v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

chetajs

chetajs-logo

NodeJS CLI generator tool for scaffolding ExpressJS applications.

Pre-loaded authentication and authentication middleware for securing your application.

Database Support

  • MongoDB
  • Sequelize

Install

Make sure you have NodeJS installed on your machine.

npm install chetajs -g

Scalffold a new project

Navigate to the directory you wish to scalffold your new project then run the command below

$ chetajs new appname
$ cd appname

Using the env.txt file as a guide,

Create a .env in the base project directory and setup your database connection string

Usage

Navigate to your scaffolded project and run any command as desired

$ chetajs <command>:<arg> <name> [options]

Commands

  • make
  • version
  • help

Args

ArgAliasDescription
resourceresgenerates a model, controller, service, route files
modelmgenerates a model file
controllercgenerates a model, controller, service, route files
routergenerates a route file
servicesgenerates service files

Options

ArgAliasDescription
- -force-fCreate file even if it already exists
- -empty-eCreate controller without crud methods
- -auth-aAdd authenticate middleware to route

Run / Build

To run your application, use the command below

$ npm run dev
$ npm run build

*npm run build generates a compiled version in the dist folder in the base directory of the project*

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago