Monorepo Remix app with deployment to Cloudflare Workers
- UnoCSS
- Daisyui
- Flowbite
- Remix
- Cloudflare Workers
- D1 (Alpha - Tests alternatives also)
- KV
- DO
- Playwright
- Github Actions
- Github Actions (automated tests and deploys)
- Turborepo
- Wrangler
You will be running two processes during development: The Remix custom server with Miniflare (local environment for Cloudflare Workers)
npm run dev
Open up local server and you should be ready to go!
If you want to check the production build, you can stop the dev server and run following commands:
npm run build
npm start
Then refresh the same URL in your browser (no live reload for production builds).
It makes the build and wrangler's deploy on Gitbhub Actions, after modifications push (main.yml)
git push
Error: ENOSPC: System limit for number of file watchers reached, watch '/home/raul/dev/remix/apps/remix/unocss.config.ts'
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
P.S. The ideal is to investigate the cause (probabily some watch mode reading the node_modules, and should be set to igore it)
Dependencies integrated at remix project example repo
UnoCSS is the instant, on-demand atomic CSS engine. It has various advantages over Tailwind CSS. Read more in the GitHub readme.
Open this example on CodeSandbox:
This example shows a bare-bones setup of UnoCSS.
List of dependencies installed:
unocss
@unocss/reset
@unocss/cli
The scripts
in package.json
have been updated to use the UnoCSS CLI to generate CSS into app/styles/uno.css
. This file is imported to app/root.tsx
to apply these styles into the Remix app. A Tailwind CSS preset is also being used from @unocss/reset
to add basic global styles according to Tailwind CSS defaults.
You can add more presets in unocss.config.ts
.