This application is currently only compatible with windows.
- Download the latest zip file from https://github.com/Midwest-Diesel/inventory-desktop/releases
- Create a folder called MWD in the C: drive and drag the installer into there
- Launch the installer
- Set the install location C:\MWD when prompted during the installation process
git clone git@github.com:Midwest-Diesel/inventory-desktop.gitnpm install- Create .env.production and .env.development files
- Create publish.sh and publish.staging.sh files
- Run the following commands:
chmod +x publish.shchmod +x publish.staging.shnpm run tauri dev- In a new terminal
npm run dev:test
- Publish to staging:
- Change version inside of src-tauri/tauri.staging.conf.json
npm run publish:staging- Commit and push
- Publish to production:
- Change version inside of src-tauri/tauri.conf.json
npm run publish- Commit and push
Sometimes it can take around 5 min for the update to propagate.
npm run lintRun all lintersnpm run lint:tsRun eslintnpm run lint:scssRun stylelint
Make sure you run npm run dev:test to host the test client.
npm run testRun all testsnpm run test:unitRun unit testsnpm run test:integrationRun integration testsnpm run test:integration:specRun specific integration tests (Ex:npm run test:integration:spec -- handwrittens)npm run test:e2eRun E2E tests in the CLInpm run test:e2e:specRun specific E2E tests in the CLInpm run test:e2e:uiRun E2E tests in the playwright UI
When running either integration or E2E tests, a new Docker container will start up for the test DB.
You can edit the initial data being inserted into the DB by modifying the /src/tests/db/init.sql file.
The DB schema is not automatically synced with prod. You will have to run npm run db:reset:test on the server whenever you make a change to the DB schema in prod.
Any time you make a change to the file system under src/styles, it will automatically update the bundle.scss file. This behavior can be configured in the scss-bundling.config.json file located in root.