add-express
v2.0.8
Published
a small scaffolding for quickly building express services.
Downloads
21
Maintainers
Readme
Introduce 📖
add-express is a small scaffolding for quickly building express services.
integration with express Mysql MongoDB
Use 🔨
Global installation
npm i add-express -g
In the directory you want to create
add-express
go to the ../project/config/default.json change mysql user and password and database name after modification
npm start
Built-in register login testislogin and "/" request
baseUrl=" localhost: your port ";
// /
/
body:none
----------------------------------------------
//register POST
/user
body:{
"username":"2",
"password":"2"
}
----------------------------------------------
//login GET
/login
body:{
"username":"2",
"password":"2"
}
----------------------------------------------
//testislogin GET
/login/islogin
header:{
"Authorization": "in login returned token"
}
You can also import postman.json Changing the baseURL
File 📂
add-express
├─ config # Default configuration file
├─ key # Asymmetric encryption key
├─ node_module # node package
├─ src
│ ├─ app # express mysql mongodb jwt deploy
│ ├─ controller
│ ├─ middleware
│ ├─ mongodb # mongodb schema
│ ├─ router
│ ├─ service # mysql service
│ ├─ utils
│ ├─ main.js
├─ .gitignore
├─ package.json
├─ package-lock.json
├─ postman.json
└─ README.md
author
👤 Loveyless
- Nationality: Chinese
- Github: @loveyless