25 lines
563 B
Markdown
25 lines
563 B
Markdown
## hooks-react-starter
|
|
|
|
Use this template:
|
|
|
|
```bash
|
|
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 server
|
|
- `npm run build`: Builds the application for production
|
|
- `npm run start`: Runs the application in production mode
|
|
|
|
## File Structure
|
|
|
|
- `src`: source code, include backend and frontend
|
|
- `api`: backend code
|
|
- `others`: frontend code
|
|
- `public`: static files
|
|
- `midway.config.ts`: project config
|
|
- `index.html`: entry file
|