This is a minimum TypeScript Node/Express API that is ready to add any data source to and host at online backend providers such as Render.
- Node/Express
- TypeScript
- executed with tsx
- compiled with tsc
- watched with nodemon
- ES6 modules
- .env file
- routers
- handlers
- online hosting ready
npm i
- create .env file in root directory
APP_TITLE = Node/Express API
npm run dev
- the package.json file has two scripts ready for hosting:
build
andstart
- if you want to host this backend at a hosting service such as Render, use these scripts:
- build command:
npm i && npm run build
- start command:
npm start
- build command:
- this template is hosted at https://template-minimal-node-express-api.onrender.com (published as free Render web server which has a 30-60 second delay if API has not been recently accessed)