Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.03 KB

README.md

File metadata and controls

55 lines (34 loc) · 1.03 KB

scramblies.main

generated using Luminus version "4.14"

Front & back end for checking if a string can be made from letters of another string.

Prerequisites

You will need Leiningen 2.0 or above installed.

Alongside shadow-cljs:

npm install -g shadow-cljs

Don't forget to npm install before compiling frontend.

Running

To start a web server for the application, run:

lein run 

To compile front-end, run:

shadow-cljs release app

Testing

To test backend, run:

lein test

You can find the tests in test/clj/scrambles/main folder.

To test frontend, run:

rm -rf target/cljsbuild/public/js
shadow-cljs release app --config-merge "{:closure-defines {scramblies.main.app/CYPRESS? true}}"

npx cypress run --config video=false

This compiles ClojureScript files with all optimizations, then runs the tests. You can find the frontend test in cypress/integration/landing/scramble.cljs

License

Copyright © 2021 Sandu Dorogan