Apply these rules when writing or reviewing FaasJS code.
File conventions
See File conventions for:
- Project structure and special files
- Route segments and fallback (
*.func.ts,index.func.ts,default.func.ts) - Verb naming semantics and list endpoint conventions
defineFunc
See defineFunc guide for:
- When to use
defineFuncin*.func.tsfiles - How plugin config from
faas.yamlis auto-loaded - A complete endpoint example with typed params
Knex
See Knex rules for:
- Configuring Knex via
faas.yamland using query-builder methods overknex.raw
Related skills
- Unit testing: faasjs-unit-testing