npm.io
1.0.1 • Published 5 years ago

ice-midway-template

Licence
—
Version
1.0.1
Deps
7
Size
19 kB
Vulns
0
Weekly
0

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