https://github.com/rpofuk/re-gen
Generator for re-frame application with navigation and using MaterialUI
https://github.com/rpofuk/re-gen
clojurescript material-ui re-frame
Last synced: 3 months ago
JSON representation
Generator for re-frame application with navigation and using MaterialUI
- Host: GitHub
- URL: https://github.com/rpofuk/re-gen
- Owner: rpofuk
- License: apache-2.0
- Created: 2019-07-07T04:33:48.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T04:22:09.000Z (over 3 years ago)
- Last Synced: 2026-01-27T00:42:58.262Z (5 months ago)
- Topics: clojurescript, material-ui, re-frame
- Language: Clojure
- Homepage:
- Size: 609 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# re-gen
Generator for initalizing re-frame web application using react, material-ui and router.
```
npm install -g shadow-cljs # Node.js and JVM are required to be installed
```
Options
```
npx @rpofuk/re-gen --help
Usage: re-gen [options] [command]
Contact management system
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
create|c Bootstrap project
add|a Add a page
```
```
# Create projecet
npx @rpofuk/re-gen@1.2.1 create myproject
cd myproject
# Create new view
npx @rpofuk/re-gen@1.2.1 add demo
# Running
npm install
shadow-cljs watch app
```
Generated project has folowing structure
```
.
├── deps.edn
├── Dockerfile
├── package.json
├── package-lock.json
├── project.iml
├── resources
│ └── public
│ ├── devcards.html
│ └── index.html
├── shadow-cljs.edn
└── src
└── main
├── edd
│ ├── core.cljs
│ ├── db.cljs
│ ├── events.cljs
│ ├── i18n.cljs
│ ├── routing.cljs
│ ├── subs.cljs
│ ├── util.cljs
│ └── views.cljs
└── myproject
├── about
│ ├── db.cljs
│ ├── events.cljs
│ ├── subs.cljs
│ └── views.cljs
├── core.cljs
├── home
│ ├── db.cljs
│ ├── events.cljs
│ ├── subs.cljs
│ └── views.cljs
├── i18n.cljs
└── styles.cljs
```
Adding new view
```
npx @rpofuk/re-gen add news
; src/main/myproject/core.cljs (dont forget required :))
; Add translations to i18n file for UX
(defn ^:export init
[config]
(core/init
{...
:panels {...
:news news/main-panel}
...}))
```
Development
```
node bin/index.js
sudo npm install -g ./
```
During development you can use local installation:
```
npx re-gen --help
```