A minimal Remix application starter with a home page.
app/actions/controller.tsxowns the top-level route actions.app/actions/home-page.tsxandapp/actions/document.tsxrender the route-owned starter UI.app/actions/public/contains the browser runtime entry and interactive prompt button.app/routes.tsdefines the shared route contract used by server and browser modules for type-safe hrefs.app/router.tswires routes to handlers.app/middleware/render.tsxinstalls the request-scoped renderer used by actions.app/assets.tsowns the server-side asset pipeline used by the asset route and renderer.- Root
public/contains static files served unchanged from the app root.
- Put top-level route actions in
app/actions/controller.tsx. - Add
app/actions/<route-key>/controller.tsxwhen a nested route map needs its own actions or middleware. - Add directories like
app/data/ortest/when the app actually needs them. - Move shared UI into
app/ui/once more than one route needs it.
npm i
npm run dev
npm run hmr
npm run start
npm test
npm run typecheck