Skip to content

carlosssanchez/remix-worker-template

 
 

Repository files navigation

remix-worker-template

Learn more about Remix Stacks.

npx create-remix --template edmundhung/remix-worker-template

What's included?

Node Version

Please make sure the node version is >= 16.7. If you are using nvm, just run:

nvm use

This allows miniflare to serve a development environment as close to the actual worker runtime as possibile.

Development

To starts your app in development mode, rebuilding assets on file changes, the recommended approach is:

npm run dev

This will run your remix app in dev mode using miniflare.

Testing

Before running the tests, please ensure the worker is built:

npm run build && npm run test

Deployment

To deploy your Remix app, simply do it with Wrangler using:

npx wrangler publish

CI/CD

The template ships a development workflow which is triggered whenever new changes are pushed.

To allow GitHub deploying the worker for you, following variables are required:

  • CF_API_TOKEN
  • CF_ACCOUNT_ID

These values could be found / created on your Cloudflare Dashboard

About

📜 All-in-one remix starter template for Cloudflare Workers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.0%
  • JavaScript 7.6%
  • Shell 0.4%