prototype of an inventory management system for the computer science chapter at KTH university
| Endpoint | Method | Input | Output |
|---|---|---|---|
| item | get | - | id name location min max current supplier link updated |
| post | name location min max current supplier link | - | |
| patch | name location min max current supplier link | - | |
| delete | query(id) | - | |
| supplier | get | - | id name link notes username password |
| get | query(id) | name | |
| post | name link notes username password | - | |
| patch | name link notes username password | - | |
| delete | query(id) | - | |
| stock | get | - | List(id name location current min order) |
| post | List(id amount) | - | |
| log | get | query(id) | List(amount time) |
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
See Vite Configuration Reference.
bun installbun devbun buildRun Unit Tests with Vitest
bun test:unitRun End-to-End Tests with Cypress
bun test:e2e:devThis runs the end-to-end tests against the Vite development server. It is much faster than the production build.
But it's still recommended to test the production build with test:e2e before deploying (e.g. in CI environments):
bun build
bun test:e2eLint with ESLint
bun lint