pulseflow
v1.5.22
Published
A Modern web framework with MVPCS structure.
Downloads
1,400
Maintainers
Readme
PulseFlow
A Modular Framework based on MVPCS (Model - View - Presenter - Controller - Service)
Please Note : This project is under development, there is no stable release, yet.
Installation
Use these commands to install and start using PulseFlow :
to install :
npm install pulseflow
to link and use pulseflow commands :
sudo npm link pulseflow
to install dependencies of pulseflow on your project :
npm install
to make necessary directories and files :
pflow install
to unlink, uninstall, install last version over and then link, run this command, this will not damage your code, just gets you the latest version of PulseFlow in a recommended way:
sudo npm run fresh
Modules
to create a new module :
pfm new <module-name>
to delete a module :
pfm del <module-name>
Submodules
to create a new submodule (model, view, presenter, controller, service) under an existing module :
pfsub new <submodule-type> <submodule-name> <module-name>
to delete a submodule (model, view, presenter, controller, service) under an existing module :
pfsub del <submodule-type> <submodule-name> <module-name>
to generate all non-existing submodule files in the directory that is defined in '[PROJECTROOT]/project/structure.js' :
pflow genf
to iterate in all controllers and make all the routes in '[PROJECTROOT]/project/endpoints.js' :
npm run build
Databases
to introduce a new database server, it will be automatically grouped as 'core'.
pfdb newserver <servertype> <serveralias>
to delete a database server
pfdb delserver <serveralias>
to introduce a new database
pfdb newdb <serveralias> <dbname>
to delete a database
pfdb deldb <serveralias> <dbname>