Installation
Dependencies
To install Qron, start by installing qron dependencies with your package manager of choice.
npm install zod @qron-run/sveltekit
Local Qron server
It is possible to run a local Qron server for development purposes.
npm install -D @qron-run/cli
In order to start a local Qron server add a script to your package.json
file:
{
"scripts": {
"qron": "qron start"
}
}
Then in a separate terminal run the following command:
npm run qron
Alternative:
If you want to run Qron and you local server in the same terminal window. It is possible to automate the process
using a tool like concurrently
or npm-run-all
.
npm i -D concurrently
Then in your package.json
file add the following script:
{
"scripts": {
"dev": "concurrently 'npm run qron' 'npm run dev'"
}
}