Skip to content

add-express is a small scaffolding for quickly building express services. integration with express Mysql MongoDB

Notifications You must be signed in to change notification settings

Loveyless/express-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎉Welcome to add-express🎉

Introduce 📖

add-express is a small scaffolding for quickly building express services.

integration with express Mysql MongoDB

Homepage github Homepage npm

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

About

add-express is a small scaffolding for quickly building express services. integration with express Mysql MongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published