To work on the Scala API, run sbt using sbt -DdevMode=true
(the devMode
option allows to skip webpack execution to speed up execution). You can
use ~compile
or ~test
on the root project or focus on a specific
project using ~timeseries/test
.
To run an example application, use example HelloTimeSeries
where HelloTimeSeries
is the example class name.
To work on the web application:
- Install yarn
- Run,
yarn install
andyarn start
.
To run the embedded MySQL on Linux you will need:
- ncurses 5, if your distribution is already using ncurses 6 you can probably install a compatibility package (e.g. ncurses5-compat-libs on Archlinux).
- libaio1.so, if your distribution has not it installed by default (ex: Ubuntu):
$> sudo apt install libaio1
We use prettier-eslint to enforce style.
Several ways to use it:
- We provide a
git-init-precommit-hook.sh
that replaces you git precommit hook by a Scalafmt and prettier-eslint run on changed files. - Use
yarn format
to format the Javascript files. - Use
ỳarm format-diff
to format only changed files.
We use Scalafmt to enforce style. The minimal config is found in the .scalafmt.conf file (you probably won't make any friends if you change this).
Several ways to use it:
- We provide a
git-init-precommit-hook.sh
that replaces you git precommit hook by a Scalafmt run on changed files.
Note:
- It works only in UNIX like systems with bash installed.
- You need a Scalafmt installed in your PATH in CLI mode.
-
You can install the IntelliJ plugin and use the familiar shift-ctrl-L shortcut.
-
You can also use the sbt plugin:
$> sbt "scalafmt -i"
See also:
$> sbt "scalafmt -help"
You might also want to read details of the sbt integration.