Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.22 KB

File metadata and controls

61 lines (42 loc) · 1.22 KB

sqlite-example

Usage

Install Exponent XDE and mobile client

If you don't want to use XDE (not IDE, it stands for Exponent Development Tools), you can use [exp CLI](https://docs.getexponent.com/versions/v11.0.0/guides/exp-cli.html).
    yarn install -g exp

Install Lein

Install npm modules

    yarn install

Signup using exp CLI

    exp signup

Start the figwheel server

    lein figwheel

Start Exponent server (Using exp)

Also connect to Android device
    exp start -a --lan
Also connect to iOS Simulator
    exp start -i --lan

Add new assets or external modules

  1. require module:
    (def cljs-logo (js/require "./assets/images/cljs.png"))
    (def FontAwesome (js/require "@exponent/vector-icons/FontAwesome"))
  1. Reload simulator or device

Make sure you disable live reload from the Developer Menu, also turn off Hot Module Reload.

Since Figwheel already does those.

Production build (generates js/externs.js and main.js)

lein prod-build