Typescript template to quickly bootstrap a Fastify Server with Sequelize as ORM.
fastify-env
: environment management;fastify-swagger
andfastify-swagger-ui
: OpenAPI specification;json-schema-to-ts
: type definitions from JSON Schemas;sequelize
andsqlite3
: persistence layer.
You need nvm
installed. Currently Node.js is set to lts/jod
(22.12.0)
nvm use
npm ci
Launch npm run test
to execute tests under the tests/
folder.
Tests can be written using node:test-runner
. Tests can also rely on:
snapshot-assertion
for snapshot management;@faker/js
for mocking
Basic Github Action can be found in the .github/
folder
There is a simple Dockerfile
that builds a container using tini
and tsx
to execute the main script.