rinanh102 / wishlist-DDD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instruction


Unit Testing

Please create the test file JestJS format inside folder specs

npm run test

Database Migration

The knexfile.js is the setup file for database connection before running any migration commands.

  • Create new migration for a table.

    knex migrate:make <action_table_name>
  • Migration all tables in migrations directory:

    knex migrate:latest
  • Take down a migration command

    knex migrate:down
  • Rollback a migration command

    knex migrate:rollback
  • Create data seed for a table

    knex seed:make <data_table_name>
  • Run all seeds in migration seeds directory:

    knex seed:run

Debugging

Run the command below and connect your debug client with the url

 npm run debug

Knex and Jest are Javascript libraries but All the sources code inside src folder must be Typescript.

About


Languages

Language:TypeScript 66.4%Language:JavaScript 32.8%Language:Shell 0.8%