Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiyuan404/happy-buy
移动端h5: food shopping app with react 18 feature
https://github.com/xiyuan404/happy-buy
Last synced: about 1 month ago
JSON representation
移动端h5: food shopping app with react 18 feature
- Host: GitHub
- URL: https://github.com/xiyuan404/happy-buy
- Owner: xiyuan404
- Created: 2024-05-31T03:45:00.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-05T11:50:58.000Z (7 months ago)
- Last Synced: 2024-07-02T08:42:08.992Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## project snapshot
![project snapshot](snapshot.png)
## project setup
1. npm i
2. 用本地代理(proxyman | charles) maplocal功能
Mock folder: 所有请求映射到本地的文件
3. 记得写拦截请求处理跨域问题
``script
//cors resolve
response.headers["Access-Control-Allow-Origin"] = "*";
response.headers["Access-Control-Allow-Headers"] = "Origin, Content-Type, X-Auth-Token, token"
response.headers["Access-Control-Allow-Methods"] = "GET,HEAD,POST"
```
npm run start