ice-midway-template
v1.0.1
Published
Docs:[Midway Hooks - Getting Started](https://www.yuque.com/midwayjs/midway_v2/hooks_intro?translate=en)
Downloads
9
Readme
Getting Started
Docs:Midway Hooks - Getting Started
Directory Structure
.
├── bootstrap.js //
├── jest.config.js // Unit test file
├── midway.config.ts // config file for setup directory and middleware
├── src
│ ├── apis // Backend directory
│ │ ├── configuration.ts // Midway Hooks configuration
│ │ └── lambda // Api directory(Can be modified in midway.config.ts)
│ │ ├── index.test.ts // Api test file
│ │ └── index.ts // Api file
│ └── main.ts // Frontend framework file
├── tsconfig.json
└── vite.config.ts
Commands
Start Dev Server
$ npm start
Build
$ npm run build
Deploy to serverless
$ npm run deploy