1.0.4 • Published 6 months ago

snowball-josys-devices-commons v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Josys Device Commons

Prisma Schema

  • src/adapters/persistence/prisma/models/: Contains Prisma schema files for different database systems.
    • src/adapters/persistence/prisma/models/mysql: Prisma schema for MySQL.
      • src/adapters/persistence/prisma/models/mysql/schema.prisma: The Prisma schema for MySQL.

Available Scripts

The project's package.json includes the following scripts:

  • start: Launches the application using ts-node.
  • build: Compiles TypeScript files into JavaScript.
  • lint: Lints the code using ESLint.
  • test: Executes tests using Jest.

You can modify or add scripts to cater to your development workflow.

Getting Started

  1. Clone the repository using git clone.
  2. Install dependencies using npm install.
  3. Configure your database connections as needed in Prisma schema files, check env.example file to create .env file.
  4. Utilize the provided scripts for starting, building, testing, and linting

Installation

$ npm install

Generate MySQL Client

$ npm run prisma:generate:mysql_client