- A Javascript/Typescript IDE with Vue.js and ESLint support.
- A recent Docker installation.
- Node.js v20+
- Install npm dependencies for all workspaces :
npm i- Pull images at first and then once in a while :
docker compose pull- Then run the containers :
npm run dev-depsStop the containers with this command :
npm run stop-dev-depsThe API is a small Express server.
Run a development server (access it at http://localhost:8082/api/) :
npm run dev-apiThe UI is a Vue 3 project that uses Vuetify 3.
Run a development server (access it at http://localhost:3039/) :
npm run dev-uiThe worker is a small Node.js process that runs periodically the processings.
Run a development process :
npm run dev-workerUpdate the types based on schemas :
npm run build-typesBuild the images :
docker build --progress=plain --target=main -t data-fair/processings:dev .
docker build --progress=plain --target=worker -t data-fair/processings/worker:dev .Run the test suite :
npm run testYou can run all services at once thanks to Zellij.
First time instructions
- Install Rust's Cargo
curl https://sh.rustup.rs -sSf | sh
# choose 1 when prompted- Install Zellij
cargo install --locked zellij- Install NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
# in processings
nvm installRun the Zellij command :
npm run dev-zellijAccess the running services at https://localhost:5600/
Tips :
- Use Ctrl + Q to quit Zellij. It'll also stop the containers.
- Click on a panel, then use Ctrl + C then Esc to stop a terminal and regain access of the panel.
- The logs of the
dev-depspanel are stored on the host in thelogsdirectory.