Use this template:
npx degit https://github.com/midwayjs/hooks/examples/react-faas ./hooks-app
Use npm install
to install the dependencies
npm run dev
: Starts the development servernpm run build
: Builds the application for productionnpm run deploy
: Deploy the application to the serverless platform
src
: source code, include backend and frontendapi
: backend codeothers
: frontend code
public
: static filesmidway.config.ts
: project configindex.html
: entry filef.yml
: serverless config