This is a template for a NodeJS API
MIT License
This is a node api project template to see how I work
srcs
Sources folderdist
Folder for generated filestslint.json
TSLinter configuration filenodemon.json
Nodemon config file to watch projecttsconfig.json
Typescript config fileI always use the base like this:
index.ts
srcs/routes
As a linter I like to use standardjs here I use tslint with standard config
In package.json
I often have at least five scripts:
I prefer to use each CLI on code with npm like that we doesn't need to install global package and CLI in node_modules will be used
I create a Dockerfile with mutlistage who first build project then run the outputed files in a second stage.