2.0.7 β€’ Published 2 years ago

add-express v2.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago