An inventory service for managing farming vehicles, equipment, and resources. Built in Typescript with NestJS, Prisma, and Sveltekit
The inventory service enables users to keep track of farm inventory across multiple IoT devices, servers, applications, or databases. This service provides a foundational interface for inventory management and interaction.
You can either build the project from source, or deploy it via docker.
# Start the database and API via docker-compose
docker-compose up -d
# View the UI
http://localhost:3000
# View the API docs
http://localhost:5000/api/docs
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Inventory comes with Prisma built-in. Prisma is used as the primary ORM and database migrations management service.
# run the migrations
npm run migrate
# run prisma studio
npm run prisma:studio
# generate typescript client for prisma schema
npm run prisma:generate
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov