- make sure Git Hooks installed. It will be install with
pnpm bootstrap. Otherwise, you can run
pnpm prepare- Commit messages should follow these rules:
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
- Must fix linting and formatting errors before commiting
- Server folder stucture follows component bases grouping
[component]-controller.ts[component]-model.ts[component]-scheme.ts[component]-schema.ts, for API payload schema
- Must add API payload schema validation using
ajvin[component]-schema.ts
- If types are added realted too communication between web and server, add the type at
app/server/src/api-types/and reuse in web and server by importing from@api-types - If all types are imported from
@api-types, import likeimport * as T from '@api-types/messagesand use asT.Message - If specific type(s) is imported from
@api-types, import by appeding the type name alias withTimport {Message as MessagesT} from '@api-types/messages