Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datasektionen/zaiko
https://github.com/datasektionen/zaiko
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/datasektionen/zaiko
- Owner: datasektionen
- Created: 2024-11-07T20:36:47.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-01-23T16:51:17.000Z (2 days ago)
- Last Synced: 2025-01-23T17:20:31.747Z (2 days ago)
- Language: Rust
- Size: 129 KB
- Stars: 1
- Watchers: 17
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zaiko
prototype of an inventory management system for the computer science chapter at KTH university
# API
| Endpoint | Description |
|------------|--------------------|
| item | |
|------------|--------------------|
| get | get all items |
|------------|--------------------|
| post | add new item |
|------------|--------------------|
| patch | update item |
|------------|--------------------|
| supplier | |
|------------|--------------------|
| get | get supplier by id |
|------------|--------------------|
| post | add new supplier |
|------------|--------------------|
| patch | update supplier |
|------------|--------------------|
| log | |
|------------|--------------------|
| get | get all logs |
|------------|--------------------|
| shortage | |
|------------|--------------------|
| get | get shortage |
|------------|--------------------|
| take_stock | |
|------------|--------------------|
| post | take stock |
|------------|--------------------|## Type Support for `.vue` Imports in TS
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](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
## Customize configuration
See [Vite Configuration Reference](https://vite.dev/config/).
## Project Setup
```sh
bun install
```### Compile and Hot-Reload for Development
```sh
bun dev
```### Type-Check, Compile and Minify for Production
```sh
bun build
```### Run Unit Tests with [Vitest](https://vitest.dev/)
```sh
bun test:unit
```### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
```sh
bun test:e2e:dev
```This 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):
```sh
bun build
bun test:e2e
```### Lint with [ESLint](https://eslint.org/)
```sh
bun lint
```