melirfan v0.0.1
HasteJS - A nodejs framework.
HasteJS is a NodeJs framework, built on top of ExpressJS, released as free and open-source software under the MIT Licence. It is particularly designed to develop a quick Restful API in record time.
Note: HasteJS still not production-ready.
###Node.js
Haste only requires Node.js. The current recommended version to run Haste is Node v14.
###Yarn (optional)
We recommend to use yarn. \
npm install -g yarn
\
or install from here https://classic.yarnpkg.com/en/docs/getting-started
create a new module \
yarn create:module moduleName
\
or \
npm run create:module moduleName
\
It will generate a new folder in app directory with routes, controllers and model.
Update the model\
Haste uses sequelize
for managing database operations. now you need to
update your model.js
file to structure your table.
For more about sequelize model visit here: https://sequelize.org/master/manual/model-basics.html
create a new middleware \
yarn create:middleware middlewareName
4 years ago