You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dev:yarn startbuild tsoa routes, swagger definitions and starts the server on development mode listening to file changes (swagger definition changes will require a manual restart)
test:yarn testunit and integration tests
build:yarn buildproduction build
prod:yarn start:prodstarts the server on production mode
local:yarn start:locallets the user sets the database via arguments
required arguments:
dbname=LOCAL_DBNAME
dbusername=LOCAL_USERNAME
dbpassword=LOCAL_PASSWORD
default arguments (can be overriden):
dbhost=localhost
dbport=3306
dbdialect=postgres
Scaffolding
config express server, DB connection, Logger, etc
env .env files
controllers routes configuration
persistance data abstraction layers
Entities classes and interfaces representing entities.
Repositories abstraction layer being used by services to access entities
services business logic to be used primary by controllers
Dtos Data transfer objects, to decouple domain from Rest resources