Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aakashns/clojurescript-cloudflare-pages
Run ClojureScript on Cloudflare Pages
https://github.com/aakashns/clojurescript-cloudflare-pages
clojurescript cloudflare serverless
Last synced: 11 days ago
JSON representation
Run ClojureScript on Cloudflare Pages
- Host: GitHub
- URL: https://github.com/aakashns/clojurescript-cloudflare-pages
- Owner: aakashns
- License: mit
- Created: 2024-01-01T11:41:47.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-01T20:33:04.000Z (10 months ago)
- Last Synced: 2024-01-02T13:26:04.318Z (10 months ago)
- Topics: clojurescript, cloudflare, serverless
- Language: Clojure
- Homepage: https://clojurescript-cloudflare-pages.pages.dev
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Run ClojureScript on Cloudflare Pages
This is a template for building [Cloudflare Pages](https://pages.cloudflare.com/) applications using [ClojureScript](https://clojurescript.org/).
Live demo: https://clojurescript-cloudflare-pages.pages.dev
Follow these steps to deploy your own copy:
1. Fork this repository to your GitHub account.
2. Open it up on GitHub Codespaces (or locally) for development.
3. Run `npm build` to compile the ClojureScript code.
4. Run `npm start` to serve the application locally.
5. Run `npx wrangler login` and follow [these instructions](https://developers.cloudflare.com/workers/wrangler/commands/#use-wrangler-login-on-a-remote-machine)
6. Run `npm run deploy` to deploy the application to your CloudFlare account.
Notes:
- For local development, make sure you have Node.js, Java, and JDK installed
- `npm start` automatically recompiles the code when a file is changed in `src`
- This template generates a [`_workers.js`](https://developers.cloudflare.com/pages/functions/advanced-mode/) file for the CloudFlare pages application
- This template uses ClojureScript on the server, not in the browser- Automated deployments are not supported as Cloudflare's build envirnoment can't compile ClojureScript
- Install the [Calva VS Code Extension](https://calva.io/) for ClojureSript syntax highlighting, code formatting, and more..Please open an issue to report bugs and submit a PR to contribute improvements!