Skip to content

deadlock-api/showcase-web

Repository files navigation

deadlock-api showcase

See https://showcase.deadlock-api.com

Development

You can develop your SPA app just like you would a normal Remix app, via:

pnpm run dev

Production

When you are ready to build a production version of your app, npm run build will generate your assets and an index.html for the SPA.

pnpm run build

Preview

You can preview the build locally with vite preview to serve all routes via the single index.html file:

pnpm run preview

Important

vite preview is not designed for use as a production server

Deployment

You can then serve your app from any HTTP server of your choosing. The server should be configured to serve multiple paths from a single root /index.html file (commonly called "SPA fallback"). Other steps may be required if the server doesn't directly support this functionality.

For a simple example, you could use sirv-cli:

npx sirv-cli build/client/ --single

Styling

This template comes with Tailwind CSS already configured for a simple default starting experience. You can use whatever css framework you prefer. See the Vite docs on css for more information.