Skip to content

sri037/backend_barebone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend

Node.js applications

Development

Compile typescript to js
npm build
Perquisite

If you want to set environment.

export BUILD_ENV=dev
Start server
npm run server
Running tests
npm test

Linting

npm run lint

Building a container

docker build

tsc --watch

Above Script, compiles typescript into javascript and watch any changes (uses local tsconfig.json configuration)

nodemon dist

Above Script, Start node with debug (inspect) and auto restart server when changes are made in dist folder.
To Generate Module

npm run generator

It asks for the module name and generates crud methods with basic model, controller, services, repo.
Add generated module route in /module/index.ts

To Render Angular Project, copy dist folder from angular project to /public/www/ folder.

Releases

No releases published

Packages

No packages published