Directory structure
This is a table of how Rakkas interprets various files and directories in a Rakkas project:
File or directory | Description |
---|---|
/vite.config.{js|ts} | Vite configuration |
/src/entry-client.{js|ts}x? | Client entrypoint |
/src/entry-hattip.{js|ts}x? | HatTip server entrypoint |
/public | Public assets |
/src/routes/**/*.page.{jsx|tsx} | Pages |
/src/routes/**/layout.{jsx|tsx} | Layouts |
/src/routes/**/$404.page.{jsx|tsx} | 404 pages |
/src/routes/**/*.api.{js|ts} | API routes |
/src/routes/**/middleware.{js|ts} | API middleware |
/src/routes/**/*.guard.{js|ts} | Single route guards |
/src/routes/**/$guard.{js|ts} | Catch-all route guards |