https://github.com/jacobhsu/vben-node-mock
https://github.com/jacobhsu/vben-node-mock
node vercel
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobhsu/vben-node-mock
- Owner: JacobHsu
- Created: 2021-06-09T09:55:08.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-04-17T09:58:43.000Z (about 3 years ago)
- Last Synced: 2025-06-29T07:42:07.650Z (12 months ago)
- Topics: node, vercel
- Language: JavaScript
- Homepage: https://vben-node-mock-jacobhsu.vercel.app/mock-api/v1/user
- Size: 134 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-mock
Armour / [vue-typescript-admin-mock-server](https://github.com/Armour/vue-typescript-admin-mock-server)
## local
`yarn mock`
http://localhost:6580/mock-api/user
http://localhost:6580/mock-api/getStockInfo
https://vben-node-mock-jacobhsu.vercel.app/mock-api/getStockInfo
swagger.yml
## npm
tslib
This is a runtime library for TypeScript that contains all of the TypeScript helper functions.
compression
Node.js compression middleware.
morgan
HTTP request logger middleware for node.js
## vercel
https://vercel.com/jacobhsu/vben-node-mock
https://vben-node-mock-jacobhsu.vercel.app/mock-api/v1/user
https://vben-node-mock-jacobhsu.vercel.app/mock-api/users
[Conflicting Configuration Files](https://vercel.com/docs/platform/frequently-asked-questions?query=now.json#conflicting-configuration-files)
For backwards compatability purposes, there are two naming conventions for configuration files used by Vercel CLI (for example `vercel.json` and `now.json`).
[Deploy a Serverless Node.js application to Vercel in 5 minutes](https://dev.to/adafycheng/deploy-nodejs-application-to-vercel-in-5-minutes-171m)
## api
https://vue-typescript-admin-mock-server-armour.vercel.app/mock-api/v1/users/login
[Postman](https://www.postman.com) *Body > raw JSON*
`{"username": "admin", "password": "111111"}`
```js
{
"code": 20000,
"data": {
"accessToken": "admin-token"
}
}
```
## References
EditorConfig for VS Code