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 ciFrom now on you can run the project. For example with npm run dev.
npm run devSometimes it's useful to expose the project in local network (for example to test it on mobile). In that case run:
npm run dev-exposeand enter the 'Network' addres on any device.
npm run buildTo perform only type checking you can run:
npm run type-checkLint with ESLint
To validate:
npm run lint-checkTo run lint and fix:
npm run lintTo format:
npm run formatTo check formating:
npm run format-checkPlease run format, lint and type checks before each commit.