kamand-back v4.0.55
Dev & Debug
In order to start the example
npm startIf you want to re-run as you save a file
npm run start:watchPublish
npm run build
npm publishTests
All tests are located inside the src/test folder.
To run all tests:
npm testThe 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:watchthen seperately run the test file:
node --require=ts-node/register src/test/example/kamand.test.tsConfiguring tests when using kamand as a dependency
- Create files
src/setup.js,src/teardown.jsusing the example - Add
testin the scripts section in thepackage.jsonfile. - Add tests in the
testfolder using the example test.
DB Migrations
we can use postgres-migrations for database migration
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago