- Fastify
- Objection.js
- Models
- Transactions
- Find Methods:
.where(...), .findById(id), .findOne(...)
- Mutating Methods:
.insert(...), .insertAndFetch(...), .patch(...), .patchAndFetch(...), .patchAndFetchById(id, ...), .delete(...), .deleteById(id)
- Join Methods:
.joinRelated('tableName'), .innerJoinRelated('tableName')
- Eager Loading Methods:
.withGraphJoined('')
- Extra Recipes and Techniques
- Swagger Specification
- JSON Schema Specification
- Node.js >= 16.17.1 (LTS)
- PostgreSQL >= 14.0
- Redis >= 7.0.0
- Optional:
docker
$npm run migrate
# run db migrations
$npm run seed
# seed db with test data
$ npm run dev
# run in development
$ npm run start
# run in production
$ npm run lint
# check for errors
$ npm run fix
# fix any errors
$ npm run test
# run tests
See .env.template
See LICENSE.md
- No tests for the tuya integration because the API is not working
- I used uuids instead of auto-incrementing ids because they're more suitable for distributed systems and more secure.