Skip to content

bnomis/om-next-datascript-localisation-demo

Repository files navigation

Om Next DataScript Localisation Demo

https://bnomis.github.io/om-next-datascript-localisation-demo/

Demo of localisation with Om Next and DataScript.

There's a video demo here: https://youtu.be/-E2Z9bca4-w

A blog post about this project is here: http://www.simonb.com/blog/2016/01/24/om-next-datascript-localisation-demo/

Hire Me

ps: I'm available for hire remotely or in Shanghai. Thanks.

About

Om Next is a ClojureScript wrapper around React.

DataScript is a ClojureScript implementation of Datomic.

This project uses:

  • Leiningen for building and running tests
  • Figwheel for interactive development
  • doo to provide a JavaScript environment for non-ui testing

Running

To run in development mode:

lein figwheel

Point your browser at http://127.0.0.1:3449/

Building

To build everything:

lein cljsbuild once

To build just the production (prod) build:

lein cljsbuild once prod

Logging

There is extensive logging in the code. This is useful for development and figuring out how Om Next works. But...

When logging is on...

  • there will be a lot of output to the console
  • the app runs slower

To Turn Logging On/Off

Edit the file logging.cljc to set the logging-is-on variable to true/false.

Testing

Currently only string interpolation is tested.

To run the tests (in this example using node as the JavaScript engine):

lein doo node test

Releases

No releases published

Packages

No packages published