This is sample project to demonstrate basic setup of Node.js application.
It usually includes:
Express
for REST endpointsFlow
for static type checkingEslint
with bunch of plugins to keep code-style consistentPrettier
to keep formatting consistent
We typically use Gitlab CI that fail if any of the checks failing(by executing ./check.sh
)
I also included sample files from other projects:
jinspect
- check for code duplications using AST comparisondependency-cruiser
- check for module layout violation(ex: main application should not import anything fromtests
orspec
folder)
We use conventional commit messaging scheme: https://github.com/commitizen/cz-cli
To run development execution with watch mode execute npm run dev:start
To run simple test using cUrl execute ./test.sh
To run server in Docker execute docker-compose -f deploy/docker-compose.yml up