This repository provides boilerplate project template for Typescript + Express.js + TS.ed with some sample controller and middlewares integration. TS.ed provides many decorators and features for rapid development of ExpressJS application. It provides experience similar to Spring Boot (MVC framework) for server development on node platform.
Once you clone this repository, install necessary packages using npm install command.
To build code use npm run build command. This will generate dist directory.
Make sure you have installed all necessary packages using npm install command.
Run npm run start:dev command to start development server. Here, it uses 'ts-node-dev'
npm package to run typescript code and watch for any file changes. It provides live-reload
feature out of box.
Make sure you have installed all necessary packages using npm install command.
Run npm run start:prod command to start production server. This command first transpiles
the typescript code to javascript code and output it in dist directory. Then it runs the
./dist/index.js file using ts-node-dev.
Once server is running, go to browser and open url http://localhost:5000 and it should load index.html page.
Use npm run list command to perform syntax linting on typescript code.