This document provides an overview of the various scripts defined in the package.json
file of the project. These scripts are used for testing, linting, building, and managing the Docker environment.
test
: Runs the Jest tests using the configuration specified injest.config.js
.test:watch
: Executes Jest in watch mode, re-running tests as files change.test:coverage
: Generates a test coverage report using Jest.
lint
: Runs ESLint to identify and fix linting issues in TypeScript files within thesrc
directory.pretty
: Formats all.ts
files in the project using Prettier.
start
: Launches the application usingts-node
, directly running the TypeScript code.start:local:dev
: Starts the application in development mode withnodemon
, monitoring for any changes.build
: Compiles TypeScript files to JavaScript using the TypeScript compiler.prisma:generate
: Generates Prisma client files.watch
: Runs the TypeScript compiler in watch mode, automatically recompiling files as they change.
db:seed
: Runs a script to seed the database with initial data.
docker:network
: Creates a Docker network with specific configurations.docker:compose:dev
: Starts Docker Compose in development mode using thedev.compose.yml
configuration file.docker:compose:prod
: Starts Docker Compose in production mode using theprod.compose.yml
configuration file.docker:logs
: Fetches logs from thetanpo
Docker container.docker:logs:follow
: Continuously streams logs from thetanpo
Docker container.docker:npm
: Executesnpm install
inside thetanpo
Docker container.docker:db:generate
: Generates Prisma client files inside the Docker container.docker:db:migrate
: Runs Prisma migrations in development mode inside the Docker container.docker:db:deploy
: Deploys the Prisma database schema to the database.docker:db:migrate:reset
: Resets the database and runs all migrations from scratch inside the Docker container.docker:db:migrate:seed
: Seeds the database using the Prisma seed script inside the Docker container.