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 run dev
Build
$ npm run build
Running in production mode
$ node bootstrap.js