Restful API based on Restify module.
Interface Call Concept: Single Entry.
run npm install command.
copy app->config Directory env.example by env.json
copy app->database Directory db.xxx.js
In the version directory, each application has its own model operation file, which is named model.
The model operation files in the model directory use the sequelize database operation framework
There are two types of database configuration files in the database directory.
- Native SQL configuration for files named db.*
- Sequelize framework configuration for files named config.*
- Create the first version
v1directory. - Operating interfaces of different applications are stored in corresponding directories with the same name.
- Storage of interface files by directory according to function points under application directory.
login.jsToken login registration file.verify.jsToken information validation file.
Target path:app->version->v1->daily->user