- /.devops - manual/auto deploy/build scripts/configs
- /config - predefined configs for envs
- /scripts - general purpose scripts
- /local - scripts for local development
- /dist - all binaries should be here
- svc -
svc
binaries for prod - /src - source code
- /libs -
service
middleware and global libs - /modules -
services
features - /types - files for describing or overriding global types for typescript
- /utils - helpers functions what used for easier implementation
- /index.ts - point of income into
service
application
- /libs -
- package.json - component meta file (default for js environment). Here the whole
service
version history is tracked
- node.js should be installed
- docker should be installed
- Clone project from svc repo
- Go to repo folder and run
npm i
- install dependencies - Run
npm run start
launch service - Go to http://localhost:9000 in browser
start
- launch applicationts-node
- wrap localts-node
packagejest
- wrap localjest
packageclean:dist
- clear dist folder before new buildprebuild
- launched before build command automaticallybuild
- build sources of applicationlint
- static analize of applicationlint:fix
- auto fix errors after linter checktest
- run unit teststest:coverage
- run unit tests and generate coverage report