Skip to content

Loveyless/express-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 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