{"id":17341142,"url":"https://github.com/davidvujic/clojurescript-amplified","last_synced_at":"2025-04-14T19:08:41.451Z","repository":{"id":44845558,"uuid":"401034610","full_name":"DavidVujic/clojurescript-amplified","owner":"DavidVujic","description":"Examples on how to setup a ClojureScript web app with tools from the JavaScript ecosystem.","archived":false,"fork":false,"pushed_at":"2023-11-23T20:43:02.000Z","size":4376,"stargazers_count":75,"open_issues_count":2,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T19:08:35.980Z","etag":null,"topics":["aws-amplify","clojurescript","storybook","webpack"],"latest_commit_sha":null,"homepage":"https://davidvujic.blogspot.com/","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DavidVujic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-29T12:21:12.000Z","updated_at":"2024-10-30T01:31:36.000Z","dependencies_parsed_at":"2024-12-09T17:53:54.465Z","dependency_job_id":"0fb80eee-67a7-47e3-93fc-11a9d46e1fe6","html_url":"https://github.com/DavidVujic/clojurescript-amplified","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidVujic%2Fclojurescript-amplified","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidVujic%2Fclojurescript-amplified/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidVujic%2Fclojurescript-amplified/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidVujic%2Fclojurescript-amplified/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavidVujic","download_url":"https://codeload.github.com/DavidVujic/clojurescript-amplified/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248943456,"owners_count":21186958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-amplify","clojurescript","storybook","webpack"],"created_at":"2024-10-15T15:47:57.045Z","updated_at":"2025-04-14T19:08:41.431Z","avatar_url":"https://github.com/DavidVujic.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ClojureScript. Amplified.\n\nIn this repo, you will find examples on how to setup a `ClojureScript` web app with tools from the `JavaScript` ecosystem.\n\n### Up and running\nIf you want to try out the `AWS Amplify` specific code, you will need to install a CLI from AWS \nand run some initialization steps. Everything is described in the official [Amplify docs](https://docs.amplify.aws/start/getting-started/installation/q/integration/react/#option-1-watch-the-video-guide).\n\nThere's an alias in `shadow-cljs.edn` named `:app-with-amplify` that will start up a AWS Amplify enabled app. \n\n#### Want to try out Storybook or Material-UI, without having to setup AWS Amplify?\nIf so, then you can safely skip the Amplify init stuff, and just use the `:app` alias.\n\n##### Commands\n``` shell\nnpm install\n```\n\nand\n\n``` shell\nnpm run watch\n```\n\nor\n\n``` shell\nnpm run watch-with-amplify\n```\n\nBecause of AWS Amplify, I had to split the Clojure compilation from the 3rd party JavaScript build by\nusing both `shadow-cljs` and `Webpack`. Explained in the blog post [Hey Webpack, Hey ClojureScript](https://davidvujic.blogspot.com/2021/08/hey-webpack-hey-clojurescript.html)\n\nIf you have started the `watch-with-amplify` script, also run this in a separate terminal (otherwise you can skip this step):\n\n``` shell\nnpm run pack\n```\n\nIf you want to run `Storybook` and the stories available in this repo, there is a script ready for you:\n\n``` shell\nnpm run storybook\n```\n\n#### Emacs user?\n\nYou can add a `.dir-locals.el` to the root of this repo to wire up the `shadow-cljs` commands,\ninstead of running the `npm` commands.\n\nEmacs .dir-locals.el example for starting the app with the __Material-UI__ and __Storybook__ examples:\n\n``` emacs-lisp\n((nil . ((cider-default-cljs-repl . shadow)\n         (cider-shadow-default-options . \":app\")\n         (cider-shadow-watched-builds . (\":app\" \":stories\")))))\n```\n\nFor __AWS Amplify__ example code, replace the `:app` alias with `:app-with-amplify`, like this:\n\n``` emacs-lisp\n((nil . ((cider-default-cljs-repl . shadow)\n         (cider-shadow-default-options . \":app-with-amplify\")\n         (cider-shadow-watched-builds . (\":app-with-amplify\" \":stories\")))))\n```\n\n### Articles\n\n#### Develop a ClojureScript web app, using cool tools from the JavaScript ecosystem.\n[ClojureScript.Amplified.](https://davidvujic.blogspot.com/2021/09/clojurescript-amplified.html)\n\n#### About ClojureScript and a setup for AWS Amplify, using Webpack\n[Hey Webpack, Hey ClojureScript](https://davidvujic.blogspot.com/2021/08/hey-webpack-hey-clojurescript.html)\n\n#### About ClojureScript and Storybook\n[Component Driven ClojureScript with Storybook](https://davidvujic.blogspot.com/2021/08/component-driven-clojurescript-with-storybook.html)\n\n#### About Clojurescript and Material-UI\n[Material Design in a Functional World](https://davidvujic.blogspot.com/2021/09/material-design-in-a-functional-world.html)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidvujic%2Fclojurescript-amplified","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidvujic%2Fclojurescript-amplified","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidvujic%2Fclojurescript-amplified/lists"}