Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willin/remix-cloudflare-workers-template
https://github.com/willin/remix-cloudflare-workers-template
cloudflare remix template workers
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/willin/remix-cloudflare-workers-template
- Owner: willin
- License: apache-2.0
- Created: 2022-02-16T11:09:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-02-17T09:48:13.000Z (over 2 years ago)
- Last Synced: 2024-04-14T05:50:02.252Z (6 months ago)
- Topics: cloudflare, remix, template, workers
- Language: JavaScript
- Homepage:
- Size: 261 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Welcome to Remix!
- [Remix Docs](https://remix.run/docs)
## Development
You will be running two processes during development:
- The Miniflare server (miniflare is a local environment for Cloudflare Workers)
- The Remix development server```sh
# in one tab, start the remix dev server
$ npm run dev# in another, start the miniflare server
$ npm start
```Open up [http://127.0.0.1:8787](http://127.0.0.1:8787) and you should be ready to go!
If you'd rather run everything in a single tab, you can look at [concurrently](https://npm.im/concurrently) or similar tools to run both processes in one tab.
## Deployment
Use [wrangler](https://developers.cloudflare.com/workers/cli-wrangler) to build and deploy your application to Cloudflare Workers. If you don't have it yet, follow [the installation guide](https://developers.cloudflare.com/workers/cli-wrangler/install-update) to get it setup. Be sure to [authenticate the CLI](https://developers.cloudflare.com/workers/cli-wrangler/authentication) as well.
If you don't already have an account, then [create a cloudflare account here](https://dash.cloudflare.com/sign-up) and after verifying your email address with Cloudflare, go to your dashboard and set up your free custom Cloudflare Workers subdomain.
Once that's done, you should be able to deploy your app:
```sh
npm run deploy
```