Skip to content

Demonstrating a client side routing recipe for reagent projects

Notifications You must be signed in to change notification settings

PEZ/reagent-bidi-accountant-example

Repository files navigation

Example project: Reagent client side routing with Bidi, Accountant and Clerk

A simple example trying to demonstrate a way to do client side routing with Bidi, Accountant and Clerk in Reagent projects.

There is a live demo of a very similar project here: clerk-demo.netlify.com.

I talk considerably more about this example in this blog post. (Except the Clerk part, which is a later addition.)

Setup

I have also configured the project to support an interactive development workflow. To start the example run:

$ lein repl

wait for the routing-example.user name space to load and then issue:

routing-example.user> (start)

Open your browser at localhost:4449. You will have Figwheel’s magic enabled.

If you are using Emacs you can start the repl using cider-jack-in and enjoy a CIDER enabled development workflow. (This is extra handy for when you are learning how to set up Bidi routing tables.)

If you use VS Code I recommend installing Calva, which will bring you some of the Emacs Cider experience. (Yes, I am biased, I am the publisher of Calva.)

License

Use however you want, at your own risk.

About

Demonstrating a client side routing recipe for reagent projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published