A skeleton project for a RESTful web service with Express.js and TypeScript
src/index.ts
: entry file for the app that starts of express serversrc/App.ts
: express app class where middleware is configuredsrc/routes/
: directory for all routes; all*.routes.ts
files in here are automatically included byindex.ts
and injected intoApp.ts
.
# install dependencies
yarn
# serve locally with hot reload on localhost:3000 (adjustable in `src/config/config.ts` or with ENV variable `PORT`)
yarn start
# build node.js version for production
yarn build
# start created production build
yarn prod
# run TypeScript linter
yarn lint