
Frontend for our whiteboard.
For now we only support running this project under Linux operating system.
First install and run the server: https://github.com/WizzWriters/spelldraw-server.
Because we are using TensorFlow.js which requires specific version of Tensorflow and python, there are some additional steps needed first. In case of any problems make sure you are not using the latest python version (try 3.10).
- Create and activate virtual environment
python -m venv "venv"
. venv/bin/activate
- Install python dependencies
pip install -r requirements.txt
- Run script to download and build tensorflow models
./tools/build-models
- Install node dependencies
npm ci
From now on you can run the project. For example with npm run dev
.
npm run dev
Sometimes it's useful to expose the project in local network (for example to test it on mobile). In that case run:
npm run dev-expose
and enter the 'Network' addres on any device.
npm run build
To perform only type checking you can run:
npm run type-check
Lint with ESLint
To validate:
npm run lint-check
To run lint and fix:
npm run lint
To format:
npm run format
To check formating:
npm run format-check
Please run format, lint and type checks before each commit.