允许跨域请求 |
||
|---|---|---|
| prisma | ||
| public | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| README.md | ||
| index.html | ||
| midway.config.ts | ||
| package.json | ||
| tsconfig.json | ||
| yarn.lock | ||
README.md
hooks-react-starter
Use this template:
npx degit https://github.com/midwayjs/hooks/examples/react ./hooks-app
Use npm install to install the dependencies
Commands
npm run dev: Starts the development servernpm run build: Builds the application for productionnpm run start: Runs the application in production mode
File Structure
src: source code, include backend and frontendapi: backend codeothers: frontend code
public: static filesmidway.config.ts: project configindex.html: entry file