3

thegeez blog - Datascript and Quiescent TodoMVC stand-alone

 3 years ago
source link: http://thegeez.net/2014/05/01/datascript_quiescent_standalone.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Datascript and Quiescent TodoMVC stand-alone

01 May 2014

Yesterday I wrote about clj-crud and its TodoMVC implementation with Datascript and React.js/Quiescent. Below is the same implementation, but this time in advanced compilation and without using a back-end. Now you don't have to log in to see the demo, but of course your todo list won't be saved in a database either.

The local storage is done in client_services.cljs with another Datascript database. This replaces the service that would talk to the back-end through ajax calls. This approach is also useful for testing and development. The Datascript transactions are in transact.cljs. The rendering with Quiescent is in render.cljs. The whole main starting point is in application.cljs

All the code is on GitHub: thegeez/clj-crud.

todos

Mark all as complete0 item(s) left

Double-click to edit a todo

Part of clj-crud - by: Gijs Stuurman - @thegeez - thegeez.net - github.com/thegeez


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK