• Stars
    star
    314
  • Rank 133,353 (Top 3 %)
  • Language
    Clojure
  • Created about 9 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

WORK IN PROGRESS

Om Tutorial Code

This is a project holding an Om (next) project that is to be used as the basis of a complete overview of the features of Om. For simplicity, the server-side component is simulated in the browser. The code you would write on the server is identical (though you will need some minor plumbing to do the actual network bits).

I try to keep it running at https://awkay.github.io/om-tutorial/, though it is really meant to be cloned locally, as the exercises have you edit the code.

What's inside?

The organization is in flux. The top-level src directory contains:

  • tutorial: Devcards with a live tutorial (in progress)
  • main: A demo application with simulated remote server (in progress, but working with Om master or alpha25+)
  • cards : Some development/tests written in devcards

The latter two are for my internal purposes at the moment, so you can largely ignore them.

Running it

There is a clojure script in the script folder. You can run it with lein or in Cursive (Run..., Add a Clojure Local REPL, Run with Clojure Main (NOT nREPL!), parameters script/figwheel.clj) or at the command line with:

lein run -m clojure.main script/figwheel.clj

Using Emacs, just start up the repl with cider-jack-in (or connect to a running lein repl), and evaluate the contents of script/figwheel.clj in the repl. Similar steps should work find for fireplace in Vim.

Then browse to the following URL:

http://localhost:3450   Devcards-based Tutorial (start here)

Expect things to change often...this is a work in progress that may take several weeks or even months. If you'd like to contribute, I'd love the help. Ping me on Slack (@tony.kay) so we don't stomp on each other.

Some things I'd like to have (but don't have the time to get to):

  • Docs in the UI section (or a subsection) that talk about more basics of (stateless) UI. E.g. more references to React docs, what the #js stuff is about and why you only do it on dom elements. Basic gotchas for beginners. Bonus points if anyone wants to hack the cljs ecosystem so that code pretty-printing can handle #js.
  • CSS for anything you think is too ugly

Figwheel notes

Once the figwheel REPL is going, you can clean and rebuild with

(reset-autobuild)

after which you probably want to reload the page in your browser to clear out any cruft.

More Repositories

1

easy-i18n

A Java Library that interfaces with GNU Gettext and Java i18n Facilities to Make i18n Easier
Java
31
star
2

fulcro-with-reframe

A playground with a bit of both reframe and Fulcro sharing the load
Clojure
14
star
3

node-trial

A simple repo (for my own use) for trying out node modules in current cljs compiler environment
Clojure
4
star
4

fulcro-pwa-experiment

An experiment making an installable progressive web app with Fulcro
Clojure
3
star
5

fulcro-routing-video

Supporting Files for Fulcro Basics - UI Routing
Clojure
3
star
6

fulcro-react-motion

A demo project using shadow-cljs to pull in and use react-motion to get UI animations
Clojure
3
star
7

porting-tool

A generic tool for automating arbitrary transforms of Clojure/Clojurescript/CLJC files
Clojure
2
star
8

easy-i18n-gettext-tutorial

Files for the Gettext tutorial
Shell
2
star
9

shadow-template

working space for developing shadow-cljs Fulcro template
Clojure
2
star
10

fulcro-pathom-sql-demo

A demo project to show how fulcro-sql and pathom can be used to interface with an SQL database for the back-end
Clojure
2
star
11

file-upload-demo

A Demo of File Upload via devcards and Fulcro
Clojure
2
star
12

dynamic-routing-ssr

A demo of SSR of a Fulcro app using dynamic rendering
Clojure
2
star
13

startups-website

Sample startups website
Clojure
2
star
14

gnu-gettext-libintl

The runtime components of GNU Gettext for Java
Java
1
star
15

cryptotax

Quick utility to help with FIFO crypto tax reporting
Clojure
1
star
16

pathopt-issue

Clojure
1
star
17

table-to-tree

An experiment in converting table results to trees
Clojure
1
star
18

fptalk

Files for FP talk
Scala
1
star
19

demo-25

A demo of minimal Fulcro deps
Clojure
1
star