Repository files navigation Skeleton for node express api
/.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
package.json - component meta file (default for js environment). Here the whole service version history is tracked
Preparation & initial start
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 application
ts-node - wrap local ts-node package
jest - wrap local jest package
clean:dist - clear dist folder before new build
prebuild - launched before build command automatically
build - build sources of application
lint - static analize of application
lint:fix - auto fix errors after linter check
test - run unit tests
test:coverage - run unit tests and generate coverage report
You can’t perform that action at this time.