kamand-back
TypeScript icon, indicating that this package has built-in type declarations

4.0.55 • Public • Published

Dev & Debug

In order to start the example

npm start

If you want to re-run as you save a file

npm run start:watch

Publish

npm run build
npm publish

Tests

All tests are located inside the src/test folder.

To run all tests:

npm test

The file src/example/setup.js runs before the tests, it starts the server and initializes the db and src/example/teardown.js is run after for teardown.

if src/example/teardown.js somehow does not run, you'll have to kill the dev server node process manually.

To work on a single test file:

First run the development server:

npm run start:watch

then seperately run the test file:

node  --require=ts-node/register src/test/example/kamand.test.ts

Configuring tests when using kamand as a dependency

  1. Create files src/setup.js, src/teardown.js using the example
  2. Add test in the scripts section in the package.json file.
  3. Add tests in the test folder using the example test.

DB Migrations

we can use postgres-migrations for database migration

Readme

Keywords

none

Package Sidebar

Install

npm i kamand-back

Weekly Downloads

23

Version

4.0.55

License

MIT

Unpacked Size

140 kB

Total Files

54

Last publish

Collaborators

  • karianpour
  • sadeq-saff