Note: As of Reaction 2.0 the CLI is deprecated and unsupported. You can use the Docker commands listed in this doc, to achieve the same results.
This document lists some handy commands to use while developing on Reaction.
npm run version --silent from your reaction directory, to check what version of Reaction you are currently running.
> npm run version --silent 2.0.0-rc.10
To run the server integration tests:
docker-compose run --rm reaction npm run test
To run the tests for a specific file use the following commands. Replace
file with the name of the file you want to test.
docker-compose run --rm reaction npm run test:file
Use the following command to lint your local files. This ensures you are running the same version of Reaction's ESLint.
docker-compose run --rm reaction npm run lint
Debug Server Code
To learn more on how to set up the inspector, check out our debugging documentation.
Tun Reaction without the default sample data store and products:
.envand add the following variable:
- Restart Reaction with